From c14287dcbdfc79eb975384ea276899654cff9f19 Mon Sep 17 00:00:00 2001 From: "eraseyourknees@gmail.com" <112027564+eraseyourknees@users.noreply.github.com> Date: Thu, 25 Aug 2022 17:44:37 +0200 Subject: [PATCH] Fix cache expiration --- shared/cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/cache.php b/shared/cache.php index c25e41d..363f87c 100644 --- a/shared/cache.php +++ b/shared/cache.php @@ -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; }