mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-03-04 13:20:07 -05:00
use 24 hours interval if the interval value (config.cache_control_interval) is set to over 1000. fixes cache control for older config.cache_control_interval values
This commit is contained in:
@@ -20,8 +20,8 @@ module.exports.removeCacheFiles = function() {
|
||||
if(config.cache_control) {
|
||||
deleteStatic();
|
||||
|
||||
const hours = config.cache_control_interval;
|
||||
if (hours < 1 || isNaN(hours)) {
|
||||
let hours = config.cache_control_interval;
|
||||
if (hours < 1 || hours > 10000 || isNaN(hours)) {
|
||||
hours = 24;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user