ah站点默认启用html优化

hotfix/远程访问多媒体中心
尹诚诚 8 years ago
parent 7a8d571346
commit a90c87a32d

@ -526,12 +526,8 @@ class Information extends CI_Controller {
if ($delete_only === true) { if ($delete_only === true) {
$url = 'https://www.asiahighlights.com/index.php/information/delete_cache_8X913mksJ/?static_html_url=' . $url; $url = 'https://www.asiahighlights.com/index.php/information/delete_cache_8X913mksJ/?static_html_url=' . $url;
} else { } else {
$static_html_optimize = $this->input->get_post('static_html_optimize'); // static_html_optimize=comeon 启用静态化压缩和js、css延迟加载
if (!empty($static_html_optimize)) {
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url . '&static_html_optimize=comeon'; $url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url . '&static_html_optimize=comeon';
} else {
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url;
}
} }
} else { //子站点使用 } else { //子站点使用
$url = $this->config->item('site_url') . $url . '@cache@refresh'; $url = $this->config->item('site_url') . $url . '@cache@refresh';

@ -1163,12 +1163,6 @@
<label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;"> <label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;">
<input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复 <input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
</label> </label>
<?php if ($this->config->item('site_code') == 'ah') { ?>
<div class="clearfix"></div>
<label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;"title="对静态文件进行极限优化压缩HTML文件精简CSS延迟加载CSS调整JS位置等">
<input type="checkbox" name="static_html_optimize" id="static_html_optimize" value="comeon" />HTML优化
</label>
<?php } ?>
<div class="clearfix"></div> <div class="clearfix"></div>
<?php if (is_series_site() || ($this->config->item('site_code') == 'ah')) { ?> <?php if (is_series_site() || ($this->config->item('site_code') == 'ah')) { ?>
<label class="col-xs-24">本站会自动更新静态页面</label> <label class="col-xs-24">本站会自动更新静态页面</label>

Loading…
Cancel
Save