静态更新

hotfix/远程访问多媒体中心
lmr@hainatravel.com 8 years ago
parent eebbfa9c06
commit fffc866a7a

@ -533,11 +533,11 @@ class Information extends CI_Controller {
//判断是否是更新信息 //判断是否是更新信息
// 产品页面不能生成静态页面,比如/beijing/hotel/只是为了在导航显示一个链接,如果生成了静态页面,网前只会显示一个空白页面了 // 产品页面不能生成静态页面,比如/beijing/hotel/只是为了在导航显示一个链接,如果生成了静态页面,网前只会显示一个空白页面了
if (!empty($information->ic_content)) { if (!empty($information->ic_content)) {
//先尝试删除静态文件。
//$try_del = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url;
//file_get_contents($try_del);
$url = $this->config->item('site_url') . '/index.php/information/detail/?static_html_url=' . $url; $url = $this->config->item('site_url') . '/index.php/information/detail/?static_html_url=' . $url;
} else { } else {
//先尝试删除静态文件。
$try_del = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url;
file_get_contents($try_del);
$url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . $url; $url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . $url;
} }
if (isset($information->ic_type) && $information->ic_type == 'product') { if (isset($information->ic_type) && $information->ic_type == 'product') {

Loading…
Cancel
Save