From 6080d3a317045be88076963ad9cc9b4912b8368c Mon Sep 17 00:00:00 2001 From: "lmr@hainatravel.com" <59361885@qq.com> Date: Sun, 20 Jan 2019 03:27:33 -0600 Subject: [PATCH] from server --- application/controllers/information.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index f50b2caf..083e7f5a 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -554,18 +554,20 @@ class Information extends CI_Controller { $url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . $tmp; } //int return direct + /* $cache_url = $this->input->post('cache_url'); if ($url && !$cache_url) { ignore_user_abort(true); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_NOSIGNAL,1); curl_setopt($ch, CURLOPT_TIMEOUT, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // 对认证证书来源的检查 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); // 从证书中检查SSL加密算法是否存在 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //禁止直接显示获取的内容 curl_setopt($ch, CURLOPT_HEADER, 0); //不需要HEAD - //curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); + curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); + curl_setopt($ch, CURLOPT_NOBODY, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_exec($ch); curl_close($ch); $data[] = array('name' => 'ok', 'value' => '信息保存成功,请在8秒后检查更新页面。', 'url' => $url); @@ -575,7 +577,7 @@ class Information extends CI_Controller { } return $data; } - + */ } break;