添加静态化优化选项

hotfix/远程访问多媒体中心
尹诚诚 8 years ago
parent 0748f382b0
commit 1aca664ff4

@ -525,9 +525,14 @@ class Information extends CI_Controller {
} else if ($this->config->item('site_code') == 'ah') { } else if ($this->config->item('site_code') == 'ah') {
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 {
$static_html_optimize = $this->input->get_post('static_html_optimize');
if (!empty($static_html_optimize)) {
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url . '&static_html_optimize=comeon';
} else { } else {
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url; $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,7 +1163,12 @@
<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