mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-03-05 13:30:33 -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) {
|
if(config.cache_control) {
|
||||||
deleteStatic();
|
deleteStatic();
|
||||||
|
|
||||||
const hours = config.cache_control_interval;
|
let hours = config.cache_control_interval;
|
||||||
if (hours < 1 || isNaN(hours)) {
|
if (hours < 1 || hours > 10000 || isNaN(hours)) {
|
||||||
hours = 24;
|
hours = 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user