Fix cache expiration
This commit is contained in:
parent
aa86232bd3
commit
c14287dcbd
@ -47,8 +47,8 @@ class UupDumpCache {
|
|||||||
$expires = $cache['expires'];
|
$expires = $cache['expires'];
|
||||||
$isExpired = ($expires !== false) && (time() > $expires);
|
$isExpired = ($expires !== false) && (time() > $expires);
|
||||||
|
|
||||||
if(empty($cache['content']) && $isExpired) {
|
if(empty($cache['content']) || $isExpired) {
|
||||||
$this->deleteCache();
|
$this->delete();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user