Browse Source

Update sys_cache_up.php

pull/13/head
xushubieli 3 years ago
parent
commit
a91b9b6394
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      src/admin/sys_cache_up.php

+ 2
- 6
src/admin/sys_cache_up.php View File

@@ -12,7 +12,6 @@ require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_ArcBatch'); CheckPurview('sys_ArcBatch');
if (empty($dopost)) $dopost = ''; if (empty($dopost)) $dopost = '';
if (empty($step)) $step = 1; if (empty($step)) $step = 1;

if ($dopost == "ok") { if ($dopost == "ok") {
if (empty($uparc)) $uparc = 0; if (empty($uparc)) $uparc = 0;
if ($step == -1) { if ($step == -1) {
@@ -20,7 +19,6 @@ if ($dopost == "ok") {
ShowMsg("成功更新所有缓存", "javascript:;"); ShowMsg("成功更新所有缓存", "javascript:;");
exit(); exit();
} }

//更新栏目缓存 //更新栏目缓存
else if ($step == 1) { else if ($step == 1) {
UpDateCatCache(); UpDateCatCache();
@@ -28,7 +26,6 @@ if ($dopost == "ok") {
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");
@@ -37,7 +34,6 @@ if ($dopost == "ok") {
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调用缓存、过期会员访问历史、过期短信
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.'">';
@@ -55,8 +51,8 @@ if ($dopost == "ok") {
} }
//修正错误文档 //修正错误文档
else if ($step == 9) { else if ($step == 9) {
ShowMsg('修正错误文档操作已经取消,请在&lt;系统-&gt;系统错误修复[S]&gt;中操作...', 'sys_cache_up.php?dopost=ok&step=-1&uparc=1', 0, 5000);
ShowMsg('修正错误文档操作已经取消,后台系统:系统错误修复中操作...', 'sys_cache_up.php?dopost=ok&step=-1&uparc=1', 0, 5000);
exit(); exit();
} }
} }
include DedeInclude('templets/sys_cache_up.htm');
include DedeInclude('templets/sys_cache_up.htm');

Loading…
Cancel
Save