mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
6ef2b78389
commit
200315efc8
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue