|
|
|
@ -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'));
|
|
|
|
|