From c9ec2d60a41cf93def78813a13654fe22d9ee6bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Fri, 28 Jun 2024 00:33:02 +0800 Subject: [PATCH] Update sys_cache_up.php --- src/admin/sys_cache_up.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/admin/sys_cache_up.php b/src/admin/sys_cache_up.php index 899f9b72..e5913a73 100644 --- a/src/admin/sys_cache_up.php +++ b/src/admin/sys_cache_up.php @@ -10,20 +10,6 @@ */ require_once(dirname(__FILE__)."/config.php"); CheckPurview('sys_ArcBatch'); -function clean_cachefiles($path) { - $list = array(); - foreach (glob($path.'/*') as $item) { - if(is_dir($item)) { - $list = array_merge($list, clean_cachefiles($item)); - } else { - $list[] = $item; - } - } - foreach ($list as $tmpfile) { - @unlink($tmpfile); - } - return true; -} if (empty($dopost)) $dopost = ''; if (empty($step)) $step = 1; if ($dopost == "ok") { @@ -54,10 +40,6 @@ if ($dopost == "ok") { $dsql->ExecuteNoneQuery("DELETE FROM `#@__statistics_detail` WHERE created_date<'$limit' "); $msg[] = "过期流量统计等缓存"; $url = "sys_cache_up.php?dopost=ok&step=-1&uparc=$uparc"; - clean_cachefiles("../data/cache"); - clean_cachefiles("../data/tplcache"); - clean_cachefiles("../data/sessions"); - clean_cachefiles("../static/enums"); if ($uparc == 1) { $url = "sys_cache_up.php?dopost=ok&step=9"; }