diff --git a/cake/libs/cache.php b/cake/libs/cache.php index 5e01cb020..7e5ece965 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -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';