aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-02-28 15:13:56 +0100
committerChocobozzz <me@florianbigard.com>2022-02-28 15:13:56 +0100
commitf7ac03ee94d9d32e26bd712e8dc05a6109f5e835 (patch)
treed45e40f4a7e1adb66f24aec5ee18ceae5e8b363a /server/initializers/constants.ts
parent70a8e50a5d3df90cba615559b5aaba1536356f5a (diff)
downloadPeerTube-f7ac03ee94d9d32e26bd712e8dc05a6109f5e835.tar.gz
PeerTube-f7ac03ee94d9d32e26bd712e8dc05a6109f5e835.tar.zst
PeerTube-f7ac03ee94d9d32e26bd712e8dc05a6109f5e835.zip
Fix client html performance regression
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 4d2a6fc63..2367e7689 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -718,10 +718,12 @@ const MEMOIZE_TTL = {
718 OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours 718 OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours
719 INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours 719 INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours
720 LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute 720 LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute
721 LIVE_CHECK_SOCKET_HEALTH: 1000 * 60 // 1 minute 721 LIVE_CHECK_SOCKET_HEALTH: 1000 * 60, // 1 minute
722 MD_TO_PLAIN_TEXT_CLIENT_HTML: 1000 * 60 // 1 minute
722} 723}
723 724
724const MEMOIZE_LENGTH = { 725const MEMOIZE_LENGTH = {
726 MD_TO_PLAIN_TEXT_CLIENT_HTML: 100,
725 INFO_HASH_EXISTS: 200 727 INFO_HASH_EXISTS: 200
726} 728}
727 729