From 30d0000dca78b91b15e9897262a6e1c78d0a5074 Mon Sep 17 00:00:00 2001 From: teddit Date: Fri, 26 Nov 2021 21:34:51 +0100 Subject: [PATCH] fix the default config.cache_control_interval to 24 hours instead of 30 minutes --- config.js.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js.template b/config.js.template index 6c46fba..3a5e09d 100644 --- a/config.js.template +++ b/config.js.template @@ -33,7 +33,7 @@ const config = { ? (JSON.parse(process.env.DOMAIN_REPLACEMENTS).map(([p, r]) => [new RegExp(p, 'gm'), r])) : [], // Replacements for domains in outgoing links. Tuples with regular expressions to match, and replacement values. This is in addition to user-level configuration of privacyDomains. cache_control: process.env.CACHE_CONTROL !== 'true' || true, // If true, teddit will automatically try to keep the size of the cache directory (static) under config.cache_max_size. By default this is set to true. - cache_control_interval: process.env.CACHE_CONTROL_INTERVAL || 1000 * 60 * 30, // How often the cached static directory is emptied. Default is every 24 hours minutes. + cache_control_interval: process.env.CACHE_CONTROL_INTERVAL || 1000 * 60 * 60 * 24, // How often the cached static directory is emptied. Default is every 24 hours minutes. post_media_max_heights: { /** * Sets the max-height value for images and videos in posts.