Update index.php

This commit is contained in:
Namhyeon Go 2019-11-15 15:45:16 +09:00 committed by GitHub
parent eb4fbac464
commit be6d49897c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,4 +133,12 @@ if(array_key_equals("cache_enabled", $config, 1)) {
));
}
// flush temp
$temp_max_age = intval(get_value_in_array("temp_max_age", $config, 0));
if($temp_max_age > 0) {
remove_storage_files("temp", array(
"max_age" => $temp_max_age
));
}
// EOF