只有CHT才需要根据选项静态更新,其它网站保存直接静态更新

hotfix/远程访问多媒体中心
LiaoYijun 8 years ago
parent c0271a5bc6
commit ef3376d91c

@ -361,11 +361,16 @@ class Information extends CI_Controller {
$this->update_cache($this->input->post('ic_url'), true); $this->update_cache($this->input->post('ic_url'), true);
} }
//德语站FAQ版块需要删除原来的文件才能更新静态 by TDY @20150113 //德语站FAQ版块需要删除原来的文件才能更新静态
if ($this->config->item('site_code') == 'gm' && substr($this->input->post('ic_url'), 0, 5) == '/faq/') { $site_code = $this->config->item('site_code');
$this->update_cache($this->input->post('ic_url'), true); $ic_url = $this->input->post('ic_url');
} else if (!empty($this->input->get_post('auto_update_cache_checkbox'))) { $auto_update_cache = $this->input->get_post('auto_update_cache_checkbox');
$this->update_cache($this->input->post('ic_url')); 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')); $data[] = array('name' => 'ok', 'value' => $this->lang->line('form_info_success'));

Loading…
Cancel
Save