|
|
@ -413,6 +413,7 @@ class Information extends CI_Controller {
|
|
|
|
$this->update_cache($this->input->post('ic_url'), true);
|
|
|
|
$this->update_cache($this->input->post('ic_url'), true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$meta_amp_status = get_meta($information->ic_id, 'AMP_STATUS');
|
|
|
|
//德语站FAQ版块需要删除原来的文件才能更新静态
|
|
|
|
//德语站FAQ版块需要删除原来的文件才能更新静态
|
|
|
|
$site_code = $this->config->item('site_code');
|
|
|
|
$site_code = $this->config->item('site_code');
|
|
|
|
$ic_url = $this->input->post('ic_url');
|
|
|
|
$ic_url = $this->input->post('ic_url');
|
|
|
@ -420,7 +421,11 @@ class Information extends CI_Controller {
|
|
|
|
if ($site_code == 'gm' && substr($ic_url, 0, 5) == '/faq/') {
|
|
|
|
if ($site_code == 'gm' && substr($ic_url, 0, 5) == '/faq/') {
|
|
|
|
$update_info_log = $this->update_cache($ic_url, true);
|
|
|
|
$update_info_log = $this->update_cache($ic_url, true);
|
|
|
|
} else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) {
|
|
|
|
} else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) {
|
|
|
|
$update_info_log = $this->update_cache($ic_url);
|
|
|
|
$update_url = $ic_url;
|
|
|
|
|
|
|
|
if ($meta_amp_status) {
|
|
|
|
|
|
|
|
$update_url = '/amp'.$ic_url;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$update_info_log = $this->update_cache($update_url);
|
|
|
|
} else if (strcasecmp($site_code, "cht") != 0) {//非cht站点
|
|
|
|
} else if (strcasecmp($site_code, "cht") != 0) {//非cht站点
|
|
|
|
$update_info_log = $this->update_cache($ic_url);
|
|
|
|
$update_info_log = $this->update_cache($ic_url);
|
|
|
|
}
|
|
|
|
}
|
|
|
|