Add infohash cache
This commit is contained in:
parent
562724a1ed
commit
35f28e94c7
5 changed files with 32 additions and 5 deletions
|
@ -572,7 +572,12 @@ const HLS_STREAMING_PLAYLIST_DIRECTORY = join(CONFIG.STORAGE.STREAMING_PLAYLISTS
|
|||
const HLS_REDUNDANCY_DIRECTORY = join(CONFIG.STORAGE.REDUNDANCY_DIR, 'hls')
|
||||
|
||||
const MEMOIZE_TTL = {
|
||||
OVERVIEWS_SAMPLE: 1000 * 3600 * 4 // 4 hours
|
||||
OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours
|
||||
INFO_HASH_EXISTS: 1000 * 3600 * 12 // 12 hours
|
||||
}
|
||||
|
||||
const MEMOIZE_LENGTH = {
|
||||
INFO_HASH_EXISTS: 200
|
||||
}
|
||||
|
||||
const QUEUE_CONCURRENCY = {
|
||||
|
@ -728,6 +733,7 @@ export {
|
|||
ACTIVITY_PUB_ACTOR_TYPES,
|
||||
THUMBNAILS_SIZE,
|
||||
VIDEO_CATEGORIES,
|
||||
MEMOIZE_LENGTH,
|
||||
VIDEO_LANGUAGES,
|
||||
VIDEO_PRIVACIES,
|
||||
VIDEO_LICENCES,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue