From ef3376d91c4a293d028207dec410f798553e5c2c Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 24 May 2017 13:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9C=89CHT=E6=89=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=A0=B9=E6=8D=AE=E9=80=89=E9=A1=B9=E9=9D=99=E6=80=81?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=8C=E5=85=B6=E5=AE=83=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E7=9B=B4=E6=8E=A5=E9=9D=99=E6=80=81=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 883ea382..859476f1 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -361,11 +361,16 @@ class Information extends CI_Controller { $this->update_cache($this->input->post('ic_url'), true); } - //德语站FAQ版块需要删除原来的文件才能更新静态 by TDY @20150113 - if ($this->config->item('site_code') == 'gm' && substr($this->input->post('ic_url'), 0, 5) == '/faq/') { - $this->update_cache($this->input->post('ic_url'), true); - } else if (!empty($this->input->get_post('auto_update_cache_checkbox'))) { - $this->update_cache($this->input->post('ic_url')); + //德语站FAQ版块需要删除原来的文件才能更新静态 + $site_code = $this->config->item('site_code'); + $ic_url = $this->input->post('ic_url'); + $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)) { + $this->update_cache($ic_url); + } else { + $this->update_cache($ic_url); } $data[] = array('name' => 'ok', 'value' => $this->lang->line('form_info_success'));