mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Making it so Cache::__loadEngine is only called once per classname.
This commit is contained in:
parent
46b965edba
commit
fa0d0addf8
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@ class Cache {
|
|||
$config = $this->__config[$name];
|
||||
|
||||
list($plugin, $class) = pluginSplit($config['engine']);
|
||||
if ($this->__loadEngine($class, $plugin) === false) {
|
||||
$cacheClass = $class . 'Engine';
|
||||
if (!class_exists($cacheClass) && $this->__loadEngine($class, $plugin) === false) {
|
||||
return false;
|
||||
}
|
||||
$cacheClass = $class . 'Engine';
|
||||
|
|
Loading…
Add table
Reference in a new issue