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