diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-28 15:13:56 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-28 15:13:56 +0100 |
commit | f7ac03ee94d9d32e26bd712e8dc05a6109f5e835 (patch) | |
tree | d45e40f4a7e1adb66f24aec5ee18ceae5e8b363a /server/initializers | |
parent | 70a8e50a5d3df90cba615559b5aaba1536356f5a (diff) | |
download | PeerTube-f7ac03ee94d9d32e26bd712e8dc05a6109f5e835.tar.gz PeerTube-f7ac03ee94d9d32e26bd712e8dc05a6109f5e835.tar.zst PeerTube-f7ac03ee94d9d32e26bd712e8dc05a6109f5e835.zip |
Fix client html performance regression
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 4 |
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 | ||
724 | const MEMOIZE_LENGTH = { | 725 | const MEMOIZE_LENGTH = { |
726 | MD_TO_PLAIN_TEXT_CLIENT_HTML: 100, | ||
725 | INFO_HASH_EXISTS: 200 | 727 | INFO_HASH_EXISTS: 200 |
726 | } | 728 | } |
727 | 729 | ||