aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-11-17 14:02:00 +0100
committerChocobozzz <me@florianbigard.com>2022-11-23 15:50:42 +0100
commit22926eafdb7373472dcb30d774b03fc597ce1659 (patch)
tree8a8dcd2daf80abcc8934a20d0b712a0c73c0a7ea /server/initializers/constants.ts
parentfbad149ff2da2bb0b2fd33b2c8bc7e398f5a12b5 (diff)
downloadPeerTube-22926eafdb7373472dcb30d774b03fc597ce1659.tar.gz
PeerTube-22926eafdb7373472dcb30d774b03fc597ce1659.tar.zst
PeerTube-22926eafdb7373472dcb30d774b03fc597ce1659.zip
Fix infohash exists memoize maxage
1 minute is enough, and it could lead to unknown infohash issue when re-streaming in a permanent live
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts2
1 files changed, 1 insertions, 1 deletions
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 = {
808 808
809const MEMOIZE_TTL = { 809const MEMOIZE_TTL = {
810 OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours 810 OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours
811 INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours 811 INFO_HASH_EXISTS: 1000 * 60, // 1 minute
812 VIDEO_DURATION: 1000 * 10, // 10 seconds 812 VIDEO_DURATION: 1000 * 10, // 10 seconds
813 LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute 813 LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute
814 LIVE_CHECK_SOCKET_HEALTH: 1000 * 60, // 1 minute 814 LIVE_CHECK_SOCKET_HEALTH: 1000 * 60, // 1 minute