Fix key required return false if empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user