forked from uup-dump/api
Fix cache expiration
This commit is contained in:
parent
aa86232bd3
commit
c14287dcbd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user