소스 검색

Update sys_cache_up.php

tags/6.3.0
叙述、别离 1 년 전
부모
커밋
5df65a3967
1개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. +11
    -11
      src/admin/sys_cache_up.php

+ 11
- 11
src/admin/sys_cache_up.php 파일 보기

@@ -37,42 +37,42 @@ if ($dopost == "ok") {
else if ($step == 1) { else if ($step == 1) {
UpDateCatCache(); UpDateCatCache();
ClearOptCache(); ClearOptCache();
ShowMsg("正在清理栏目缓存,继续清理枚举缓存", "sys_cache_up.php?dopost=ok&step=2&uparc=$uparc");
ShowMsg("开始清理栏目缓存,继续清理枚举缓存", "sys_cache_up.php?dopost=ok&step=2&uparc=$uparc");
exit(); exit();
} }
//更新枚举缓存 //更新枚举缓存
else if ($step == 2) { else if ($step == 2) {
include_once(DEDEINC."/enums.func.php"); include_once(DEDEINC."/enums.func.php");
WriteEnumsCache(); WriteEnumsCache();
//WriteAreaCache(); 已过期
ShowMsg("正在清理枚举缓存,继续清理调用缓存", "sys_cache_up.php?dopost=ok&step=3&uparc=$uparc"); ShowMsg("正在清理枚举缓存,继续清理调用缓存", "sys_cache_up.php?dopost=ok&step=3&uparc=$uparc");
exit(); exit();
} }
//清理arclist调用缓存、过期会员浏览历史、过期短信、陈旧的流量统计数据
//清理arclist调用缓存、过期会员浏览历史、过期短信、之前15天流量统计
else if ($step == 3) { else if ($step == 3) {
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$cfg_soft_lang\">"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$cfg_soft_lang\">";
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arccache`"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arccache`");
$msg = array(); $msg = array();
$msg[] = "正在清理arclist调用缓存,继续清理过期会员浏览历史";
$msg[] = "继续清理arclist调用缓存,过期会员浏览历史";
$oldtime = time() - (90 * 24 * 3600); $oldtime = time() - (90 * 24 * 3600);
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE sendtime<'$oldtime' "); $dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE sendtime<'$oldtime' ");
$msg[] = "正在清理过期短信,继续修正错误文档,要占较长时间";
$msg[] = "过期短信,错误文档";
$limit = date('Ymd', strtotime('-15 days')); $limit = date('Ymd', strtotime('-15 days'));
$dsql->ExecuteNoneQuery("DELETE FROM `#@__statistics_detail` WHERE created_date < '$limit'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__statistics_detail` WHERE created_date < '$limit'");
$msg[] = "正在清理15天之前流量统计";
$msg[] = "之前15天流量统计";
$url = "sys_cache_up.php?dopost=ok&step=-1&uparc=$uparc"; $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("../data/cache");
clean_cachefiles("../data/tplcache");
clean_cachefiles("../data/sessions");
clean_cachefiles("../static/enums");
if ($uparc == 1) { if ($uparc == 1) {
$url = "sys_cache_up.php?dopost=ok&step=9"; $url = "sys_cache_up.php?dopost=ok&step=9";
} }
ShowMsg(implode("<br/>", $msg), $url);
ShowMsg(implode("", $msg), $url);
exit(); exit();
} }
//修正错误文档 //修正错误文档
else if ($step == 9) { else if ($step == 9) {
ShowMsg('清理错误文档已取消,到系统修复工具进行操作', 'sys_cache_up.php?dopost=ok&step=-1&uparc=1');
ShowMsg('清理错误文档已取消,建议用系统修复工具清理', 'sys_cache_up.php?dopost=ok&step=-1&uparc=1');
exit(); exit();
} }
} }


불러오는 중...
취소
저장