|
|
|
|
@ -39,6 +39,8 @@ class Cache extends CI_Controller {
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public function update() {
|
|
|
|
|
header('Content-Type: text/html; charset=utf-8');
|
|
|
|
|
|
|
|
|
|
$returnType = $this->input->get('type');
|
|
|
|
|
//设置缓存文件文件夹
|
|
|
|
|
$cache_config = $this->config->item('cache');
|
|
|
|
|
@ -156,9 +158,9 @@ class Cache extends CI_Controller {
|
|
|
|
|
$url_temp = str_replace('/index.htm', '/', $url_temp);
|
|
|
|
|
$file_time[$url_temp] = date("F d Y H:i:s", filemtime("$dir/$f"));
|
|
|
|
|
|
|
|
|
|
// $encode = mb_detect_encoding($url_temp, ['ASCII', 'GBK', 'ISO-8859-1', 'UTF-8']);
|
|
|
|
|
$encode = mb_detect_encoding($url_temp, ['ASCII', 'GBK', 'ISO-8859-1', 'UTF-8']);
|
|
|
|
|
// $_url_temp = mb_convert_encoding($url_temp, 'UTF8', $encode);
|
|
|
|
|
$_url_temp = $url_temp;
|
|
|
|
|
$_url_temp = mb_convert_encoding($url_temp, 'UTF-8', 'GBK') . '?encoding=' . $encode;
|
|
|
|
|
|
|
|
|
|
$file[] = $_url_temp;
|
|
|
|
|
}
|
|
|
|
|
|