aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-14 11:52:23 +0200
committerChocobozzz <me@florianbigard.com>2018-09-14 11:52:23 +0200
commit7348b1fd84dee869b3c36554aea6797f09d4ceed (patch)
tree46f6800a92f659dd989d0f38c1b682a61fd2315a /server/initializers/constants.ts
parent2b62cccd75e9025fb66148bcb1feea2a458ee8e4 (diff)
downloadPeerTube-7348b1fd84dee869b3c36554aea6797f09d4ceed.tar.gz
PeerTube-7348b1fd84dee869b3c36554aea6797f09d4ceed.tar.zst
PeerTube-7348b1fd84dee869b3c36554aea6797f09d4ceed.zip
Speed up overviews route
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 5f7bcbd48..9cccb0919 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -592,6 +592,10 @@ const CACHE = {
592 } 592 }
593} 593}
594 594
595const MEMOIZE_TTL = {
596 OVERVIEWS_SAMPLE: 1000 * 3600 * 4 // 4 hours
597}
598
595const REDUNDANCY = { 599const REDUNDANCY = {
596 VIDEOS: { 600 VIDEOS: {
597 EXPIRES_AFTER_MS: 48 * 3600 * 1000, // 2 days 601 EXPIRES_AFTER_MS: 48 * 3600 * 1000, // 2 days
@@ -708,6 +712,7 @@ export {
708 VIDEO_ABUSE_STATES, 712 VIDEO_ABUSE_STATES,
709 JOB_REQUEST_TIMEOUT, 713 JOB_REQUEST_TIMEOUT,
710 USER_PASSWORD_RESET_LIFETIME, 714 USER_PASSWORD_RESET_LIFETIME,
715 MEMOIZE_TTL,
711 USER_EMAIL_VERIFY_LIFETIME, 716 USER_EMAIL_VERIFY_LIFETIME,
712 IMAGE_MIMETYPE_EXT, 717 IMAGE_MIMETYPE_EXT,
713 OVERVIEWS, 718 OVERVIEWS,