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