瀏覽代碼

Update sys_cache_up.php

develop
叙述、别离 3 月之前
父節點
當前提交
c9ec2d60a4
共有 1 個檔案被更改,包括 0 行新增18 行删除
  1. +0
    -18
      src/admin/sys_cache_up.php

+ 0
- 18
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";
}


Loading…
取消
儲存