diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-03 13:47:45 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-03 13:47:45 +0100 |
commit | 35f28e94c763370616d25d5820f4b9ef70cedca9 (patch) | |
tree | 7ade51d5e60a5856d74c5776dd62fcaaa3ae0858 /server/initializers | |
parent | 562724a1ed13fe93aba08ca1a0f8e029819e9f32 (diff) | |
download | PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.gz PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.zst PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.zip |
Add infohash cache
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 1b7b94d74..f4a2b358b 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -572,7 +572,12 @@ const HLS_STREAMING_PLAYLIST_DIRECTORY = join(CONFIG.STORAGE.STREAMING_PLAYLISTS | |||
572 | const HLS_REDUNDANCY_DIRECTORY = join(CONFIG.STORAGE.REDUNDANCY_DIR, 'hls') | 572 | const HLS_REDUNDANCY_DIRECTORY = join(CONFIG.STORAGE.REDUNDANCY_DIR, 'hls') |
573 | 573 | ||
574 | const MEMOIZE_TTL = { | 574 | const MEMOIZE_TTL = { |
575 | OVERVIEWS_SAMPLE: 1000 * 3600 * 4 // 4 hours | 575 | OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours |
576 | INFO_HASH_EXISTS: 1000 * 3600 * 12 // 12 hours | ||
577 | } | ||
578 | |||
579 | const MEMOIZE_LENGTH = { | ||
580 | INFO_HASH_EXISTS: 200 | ||
576 | } | 581 | } |
577 | 582 | ||
578 | const QUEUE_CONCURRENCY = { | 583 | const QUEUE_CONCURRENCY = { |
@@ -728,6 +733,7 @@ export { | |||
728 | ACTIVITY_PUB_ACTOR_TYPES, | 733 | ACTIVITY_PUB_ACTOR_TYPES, |
729 | THUMBNAILS_SIZE, | 734 | THUMBNAILS_SIZE, |
730 | VIDEO_CATEGORIES, | 735 | VIDEO_CATEGORIES, |
736 | MEMOIZE_LENGTH, | ||
731 | VIDEO_LANGUAGES, | 737 | VIDEO_LANGUAGES, |
732 | VIDEO_PRIVACIES, | 738 | VIDEO_PRIVACIES, |
733 | VIDEO_LICENCES, | 739 | VIDEO_LICENCES, |