Update index.php
This commit is contained in:
parent
f882241bce
commit
33d72b07cb
|
@ -129,7 +129,8 @@ if(!loadRoute($route, $scope)) {
|
|||
// flush cache
|
||||
if(array_key_equals("cache_enabled", $config, 1)) {
|
||||
remove_storage_files("cache", array(
|
||||
"max_age" => get_value_in_array("cache_max_age", $config, 0)
|
||||
"max_age" => get_value_in_array("cache_max_age", $config, 0),
|
||||
"excludes" => array("index.php", "index.html")
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -137,7 +138,8 @@ if(array_key_equals("cache_enabled", $config, 1)) {
|
|||
$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
|
||||
"max_age" => $temp_max_age,
|
||||
"excludes" => array("index.php", "index.html")
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user