Fix cache expiration

This commit is contained in:
eraseyourknees@gmail.com 2022-08-25 17:44:37 +02:00
parent aa86232bd3
commit c14287dcbd

View File

@ -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;
}