diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-14 09:57:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-14 09:57:21 +0200 |
commit | b36f41ca09e92ecb30d367d91d1089a23d10d585 (patch) | |
tree | 34b7c90e17f73f37d069a2f08d60dc36fa08372f /config | |
parent | 6f0c46be8c9f4690d5e5cb758c4df6164b006f83 (diff) | |
download | PeerTube-b36f41ca09e92ecb30d367d91d1089a23d10d585.tar.gz PeerTube-b36f41ca09e92ecb30d367d91d1089a23d10d585.tar.zst PeerTube-b36f41ca09e92ecb30d367d91d1089a23d10d585.zip |
Add trending videos strategy
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 3 | ||||
-rw-r--r-- | config/production.yaml.example | 3 | ||||
-rw-r--r-- | config/test.yaml | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml index af29a4379..ecb809c6a 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -74,6 +74,9 @@ redundancy: | |||
74 | # - | 74 | # - |
75 | # size: '10GB' | 75 | # size: '10GB' |
76 | # strategy: 'most-views' # Cache videos that have the most views | 76 | # strategy: 'most-views' # Cache videos that have the most views |
77 | # - | ||
78 | # size: '10GB' | ||
79 | # strategy: 'trending' # Cache trending videos | ||
77 | 80 | ||
78 | cache: | 81 | cache: |
79 | previews: | 82 | previews: |
diff --git a/config/production.yaml.example b/config/production.yaml.example index ddd43093f..48d69e987 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -75,6 +75,9 @@ redundancy: | |||
75 | # - | 75 | # - |
76 | # size: '10GB' | 76 | # size: '10GB' |
77 | # strategy: 'most-views' # Cache videos that have the most views | 77 | # strategy: 'most-views' # Cache videos that have the most views |
78 | # - | ||
79 | # size: '10GB' | ||
80 | # strategy: 'trending' # Cache trending videos | ||
78 | 81 | ||
79 | ############################################################################### | 82 | ############################################################################### |
80 | # | 83 | # |
diff --git a/config/test.yaml b/config/test.yaml index 0f280eabd..73bc5da98 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -26,6 +26,9 @@ redundancy: | |||
26 | - | 26 | - |
27 | size: '100KB' | 27 | size: '100KB' |
28 | strategy: 'most-views' | 28 | strategy: 'most-views' |
29 | - | ||
30 | size: '100KB' | ||
31 | strategy: 'trending' | ||
29 | 32 | ||
30 | cache: | 33 | cache: |
31 | previews: | 34 | previews: |