修复 文件缓存读取

This commit is contained in:
Discuz! 2017-02-13 17:07:56 +08:00
parent 506268477d
commit 5efab6449b
1 changed files with 2 additions and 2 deletions

View File

@ -38,11 +38,11 @@ class memory_driver_file {
}
public function get($key) {
$data = false;
$data = array();
@include_once DISCUZ_ROOT.$this->path.$this->cachefile($key).'.php';
if($data !== false) {
if($data['exp'] && $data['exp'] < TIMESTAMP) {
return false;
return array();
}
return $data['data'];
}