Update index.php

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

View File

@ -128,12 +128,9 @@ if(!loadRoute($route, $scope)) {
// flush cache
if(array_key_equals("cache_enabled", $config, 1)) {
$caches = iterate_storage_files("cache");
foreach($caches as $filename) {
remove_storage_file($filename, array(
"storage_type" => "cache"
remove_storage_files("cache", array(
"max_age" => get_value_in_array("cache_max_age", $config, 0)
));
}
}
// EOF