|
|
|
@ -497,6 +497,8 @@ class Information extends CI_Controller
|
|
|
|
|
} else if (strcasecmp($site_code, "ch") == 0 && !empty($auto_update_cache)) {
|
|
|
|
|
//读取模板生成PC和移动优先文件
|
|
|
|
|
$information_new = $this->Information_model->Detail($this->input->post('is_id'));
|
|
|
|
|
//设置图片尺寸
|
|
|
|
|
$information_new->ic_content=$this->html_optimize_lib->set_image_size($information_new->ic_content);
|
|
|
|
|
$this->make_www_cache('mobile', $information_new);
|
|
|
|
|
$this->make_www_cache('pc', $information_new);
|
|
|
|
|
} else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) {
|
|
|
|
@ -578,6 +580,7 @@ class Information extends CI_Controller
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ($this->html_file_helper('find', $information->ic_url)) {
|
|
|
|
|
//用于批量更新
|
|
|
|
|
//设置图片尺寸
|
|
|
|
|
$information->ic_content=$this->html_optimize_lib->set_image_size($information->ic_content);
|
|
|
|
|
$this->make_www_cache('pc', $information);
|
|
|
|
|