mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
fixing cache error
This commit is contained in:
parent
47d50b1d93
commit
b2f7cd5aff
1 changed files with 2 additions and 3 deletions
|
@ -136,8 +136,8 @@ class Cache extends Object {
|
|||
return false;
|
||||
}
|
||||
$settings = $_this->__config[$name] = $_this->settings($engine);
|
||||
} else {
|
||||
$settings = $_this->__config[$name] = $_this->set($_this->__config[$name]);
|
||||
} else if ($settings = $_this->set($_this->__config[$name])) {
|
||||
$_this->__config[$name] = $settings;
|
||||
}
|
||||
return compact('engine', 'settings');
|
||||
}
|
||||
|
@ -188,7 +188,6 @@ class Cache extends Object {
|
|||
}
|
||||
|
||||
$engine = $_this->__config[$_this->__name]['engine'];
|
||||
|
||||
if (!empty($settings)) {
|
||||
$_this->__reset = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue