修复 文件缓存读取
This commit is contained in:
parent
506268477d
commit
5efab6449b
|
@ -38,11 +38,11 @@ class memory_driver_file {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get($key) {
|
public function get($key) {
|
||||||
$data = false;
|
$data = array();
|
||||||
@include_once DISCUZ_ROOT.$this->path.$this->cachefile($key).'.php';
|
@include_once DISCUZ_ROOT.$this->path.$this->cachefile($key).'.php';
|
||||||
if($data !== false) {
|
if($data !== false) {
|
||||||
if($data['exp'] && $data['exp'] < TIMESTAMP) {
|
if($data['exp'] && $data['exp'] < TIMESTAMP) {
|
||||||
return false;
|
return array();
|
||||||
}
|
}
|
||||||
return $data['data'];
|
return $data['data'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue