From 1082023f2edb3b03d2c228ffe613f66f3ded1e33 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Fri, 2 Jun 2017 10:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E6=98=AFCHT?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E6=89=8D=E9=9C=80=E8=A6=81=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E9=9D=99=E6=80=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index be98c645..52f1e0ca 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -392,9 +392,9 @@ class Information extends CI_Controller { $auto_update_cache = $this->input->get_post('auto_update_cache_checkbox'); if ($site_code == 'gm' && substr($ic_url, 0, 5) == '/faq/') { $this->update_cache($ic_url, true); - } else if ($site_code == 'cht' && !empty($auto_update_cache)) { + } else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) { $this->update_cache($ic_url); - } else { + } else if (strcasecmp($site_code, "cht") != 0) { $this->update_cache($ic_url); } @@ -474,6 +474,7 @@ class Information extends CI_Controller { //更新静态文件 //不用参数提交的原因是可能url带有特殊字符,CI会报错 public function update_cache($static_html_url = false, $delete_only = false) { + $url = $static_html_url; if (empty($url)) { $url = $this->input->post('cache_url');