From 0c57b1335809b02f4d19ed4263e3a2d0ff5e6b15 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 14 May 2026 15:41:38 +0000 Subject: [PATCH] Fix key required return false if empty --- resources/classes/cache.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/classes/cache.php b/resources/classes/cache.php index e78824d82..a3f242bc2 100644 --- a/resources/classes/cache.php +++ b/resources/classes/cache.php @@ -137,6 +137,11 @@ class cache { closelog(); } + //key is required return false if empty + if (empty($key)) { + return false; + } + //cache method memcache if ($this->method === "memcache") { //connect to event socket @@ -211,6 +216,11 @@ class cache { apcu_clear_cache(); } + //remove the autoloader file cache + if (file_exists(sys_get_temp_dir() . '/' . auto_loader::CLASSES_FILE)) { + @unlink(sys_get_temp_dir() . '/' . auto_loader::CLASSES_FILE); + } + //cache method memcache if ($this->method === "memcache") { // connect to event socket