添加静态化优化选项

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

@ -526,7 +526,12 @@ 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 {
$url = 'https://www.asiahighlights.com/index.php/information/detail/?static_html_url=' . $url; $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 {
$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';

@ -1,4 +1,4 @@
<?php // 代码各服务器已经同步 2016.06.01 ycc ?> <?php // 代码各服务器已经同步 2016.06.01 ycc ?>
<script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script> <script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript"> <script type="text/javascript">
var content_length = 0; var content_length = 0;
@ -161,7 +161,7 @@
url: urlReQuery, url: urlReQuery,
data: {'is_id': is_id, 'is_parent_id': is_parent_id}, data: {'is_id': is_id, 'is_parent_id': is_parent_id},
success: function(data, textStatus) { success: function(data, textStatus) {
window.location.href = "<?php echo site_url('information/edit'); ?>/"+is_id; window.location.href = "<?php echo site_url('information/edit'); ?>/" + is_id;
return true; return true;
}, },
error: function() { error: function() {
@ -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