proper fix for #4710

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6993 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-05-21 16:14:18 +00:00
parent 6ef2b78389
commit 200315efc8

View file

@ -635,11 +635,15 @@ class Configure extends Object {
}
if ($_this->read('Cache.disable') !== true) {
$cache = Cache::settings('default');
if (empty($cache)) {
$cache = Cache::config('default');
if (empty($cache['settings'])) {
trigger_error('Cache not configured properly. Please check Cache::config(); in APP/config/core.php', E_USER_WARNING);
list($engine, $cache) = Cache::config('default', array('engine' => 'File'));
} else {
$cache = $cache['settings'];
}
if (Configure::read() > 1) {
$cache['duration'] = 10;
}