Making it so Cache::__loadEngine is only called once per classname.

This commit is contained in:
mark_story 2009-11-21 20:01:33 -05:00
parent 46b965edba
commit fa0d0addf8

View file

@ -143,7 +143,8 @@ class Cache {
$config = $this->__config[$name]; $config = $this->__config[$name];
list($plugin, $class) = pluginSplit($config['engine']); 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; return false;
} }
$cacheClass = $class . 'Engine'; $cacheClass = $class . 'Engine';