Browse Source

Update sys_cache_up.php

develop
叙述、别离 6 months ago
parent
commit
c9ec2d60a4
1 changed files with 0 additions and 18 deletions
  1. +0
    -18
      src/admin/sys_cache_up.php

+ 0
- 18
src/admin/sys_cache_up.php View File

@@ -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";
}


Loading…
Cancel
Save