Update index.php
This commit is contained in:
parent
b3ae89c9fa
commit
a2b6bcdfa7
11
index.php
11
index.php
|
@ -127,20 +127,15 @@ if(!loadRoute($route, $scope)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// flush cache
|
// flush cache
|
||||||
|
$cache_max_age = intval(get_value_in_array("cache_max_age", $config, 0));
|
||||||
if(array_key_equals("cache_enabled", $config, 1)) {
|
if(array_key_equals("cache_enabled", $config, 1)) {
|
||||||
remove_storage_files("cache", array(
|
remove_volatile_files("cache", $cache_max_age);
|
||||||
"max_age" => get_value_in_array("cache_max_age", $config, 0),
|
|
||||||
"excludes" => array("index.php", "index.html")
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// flush temp
|
// flush temp
|
||||||
$temp_max_age = intval(get_value_in_array("temp_max_age", $config, 0));
|
$temp_max_age = intval(get_value_in_array("temp_max_age", $config, 0));
|
||||||
if($temp_max_age > 0) {
|
if($temp_max_age > 0) {
|
||||||
remove_storage_files("temp", array(
|
remove_volatile_files("temp", $temp_max_age);
|
||||||
"max_age" => $temp_max_age,
|
|
||||||
"excludes" => array("index.php", "index.html")
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// EOF
|
// EOF
|
||||||
|
|
Loading…
Reference in New Issue
Block a user