[2] ErrorException in File.php line 109

file_get_contents(/www/wwwroot/www.cnsoftwell.com/caches/cache/2c/6724bf5295013789927813e9c1c166.php): failed to open stream: No such file or directory

  1. * @param mixed $default 默认值
  2. * @return mixed
  3. */
  4. public function get($name, $default = false)
  5. {
  6. $filename = $this->getCacheKey($name);
  7. if (!is_file($filename)) {
  8. return $default;
  9. }
  10. $content = file_get_contents($filename);
  11. if (false !== $content) {
  12. $expire = (int) substr($content, 8, 12);
  13. if (0 != $expire && $_SERVER['REQUEST_TIME'] > filemtime($filename) + $expire) {
  14. //缓存过期删除缓存文件
  15. $this->unlink($filename);
  16. return $default;
  17. }
  18. $content = substr($content, 20, -3);
  19. if ($this->options['data_compress'] && function_exists('gzcompress')) {

Exception Datas

Error Context
name catlist
default false
filename /www/wwwroot/www.cnsoftwell.com/caches/cache/2c/6724bf5295013789927813e9c1c166.php