diff options
Diffstat (limited to 'server/initializers/constants.ts')
-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, |