Minor optimization on importing of Cache engines.

This commit is contained in:
mark_story 2009-11-21 20:05:19 -05:00
parent fa0d0addf8
commit 4ea2a3f37d

View file

@ -195,11 +195,11 @@ class Cache {
*/
function __loadEngine($name, $plugin = null) {
if ($plugin) {
return App::import('Lib', $plugin . '.cache' . DS . $name);
return App::import('Lib', $plugin . '.cache' . DS . $name, false);
} else {
$app = App::import('Lib', 'cache' . DS . $name);
$app = App::import('Lib', 'cache' . DS . $name, false);
if (!$app) {
return App::import('Core', 'cache' . DS . $name);
require LIBS . 'cache' . DS . strtolower($name) . '.php';
}
return true;
}