Fix key required return false if empty

This commit is contained in:
markjcrane
2026-05-14 15:41:38 +00:00
parent a73bb34666
commit 0c57b13358
+10
View File
@@ -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