From 22926eafdb7373472dcb30d774b03fc597ce1659 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Nov 2022 14:02:00 +0100 Subject: [PATCH] Fix infohash exists memoize maxage 1 minute is enough, and it could lead to unknown infohash issue when re-streaming in a permanent live --- server/initializers/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 3908bbf05..991fe3e85 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -808,7 +808,7 @@ const VIDEO_LIVE = { const MEMOIZE_TTL = { OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours - INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours + INFO_HASH_EXISTS: 1000 * 60, // 1 minute VIDEO_DURATION: 1000 * 10, // 10 seconds LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute LIVE_CHECK_SOCKET_HEALTH: 1000 * 60, // 1 minute