fix the default config.cache_control_interval to 24 hours instead of 30 minutes

This commit is contained in:
teddit 2021-11-26 21:34:51 +01:00
parent d895e400ef
commit 30d0000dca
1 changed files with 1 additions and 1 deletions

View File

@ -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.