From be6d49897c5d67f8d1047523505a546b3d5e353d Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 15 Nov 2019 15:45:16 +0900 Subject: [PATCH] Update index.php --- index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.php b/index.php index 3869c71..78061cd 100644 --- a/index.php +++ b/index.php @@ -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