#446 | |
#447 | //优先从缓存文件里面读取? |
#448 | if (!$new && file_exists($cache_file_path)) { |
#449 | $cacheTime = filemtime($cache_file_path); |
#450 | if ($_ENV['_time'] - $cacheTime < $life) { |
#451 | $huilvdata = json_decode(file_get_contents($cache_file_path), true); |
#452 | }else{ |
#453 | unlink($cache_file_path); |
#454 | } |
#455 | } |