diff --git a/cake/libs/cache.php b/cake/libs/cache.php index 8c54bbf66..26cf56cff 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -196,11 +196,13 @@ class Cache { if ($plugin) { return App::import('Lib', $plugin . '.cache' . DS . $name, false); } else { - $app = App::import('Lib', 'cache' . DS . $name, false); - if (!$app) { - require LIBS . 'cache' . DS . strtolower($name) . '.php'; + $core = App::core(); + $path = $core['libs'][0] . 'cache' . DS . strtolower($name) . '.php'; + if (file_exists($path)) { + require $path; + return true; } - return true; + return App::import('Lib', 'cache' . DS . $name, false); } }