CT站加保存更新缓存。

mobile-first
赵鹏 5 years ago
parent 9c5dc089f4
commit 944eed3168

@ -451,6 +451,8 @@ class Information extends CI_Controller
$update_info_log = $this->update_cache($ic_url);
} else if (strcasecmp($site_code, "cht") != 0 && strcasecmp($site_code, "gm") != 0 && strcasecmp($site_code, "ah") != 0) { //非cht站点并且非GM并且非AH
$update_info_log = $this->update_cache($ic_url);
}else if (strcasecmp($site_code, "ct") == 0 && !empty($auto_update_cache)) {
$update_info_log = $this->update_cache($ic_url);
}
if (empty($update_info_log) || count($update_info_log) == 0 || !isset($update_info_log[0]['url'])) {
@ -612,6 +614,8 @@ class Information extends CI_Controller
break;
case 'ct': //子站点使用
$url = 'http://50.97.246.187:22223' . $url;
break;
case 'sht':
case 'gl':
case 'mbj':

@ -1472,7 +1472,7 @@ foreach ($author_list as $author_item) {
<input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
</label>
<div class="clearfix"></div>
<?php if (in_array($this->config->item('site_code'), array('cht', 'gm','ah'))) {?>
<?php if (in_array($this->config->item('site_code'), array('cht', 'gm','ah','ct'))) {?>
<label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;">
<input type="checkbox" name="auto_update_cache_checkbox" id="auto_update_cache_checkbox" onclick="get_update_cache_url();" value="<?php echo $information->ic_url; ?>" />静态更新
</label>

Loading…
Cancel
Save