mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Minor optimization on importing of Cache engines.
This commit is contained in:
parent
fa0d0addf8
commit
4ea2a3f37d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue