Update index.php
This commit is contained in:
parent
d05d35c55e
commit
c1e0f92b91
12
index.php
12
index.php
|
@ -125,3 +125,15 @@ IF(PHP_DDOS_PROTECTION !== false) {
|
||||||
if(!loadRoute($route, $scope)) {
|
if(!loadRoute($route, $scope)) {
|
||||||
loadRoute("errors/404", $scope);
|
loadRoute("errors/404", $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"
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// EOF
|
||||||
|
|
Loading…
Reference in New Issue
Block a user