Fixed a problem in Configure causing the File engines default path to be ignored , closes #4673

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6916 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
the_undefined 2008-05-17 21:47:06 +00:00
parent 7e4224a1f9
commit d9e6ee6494

View file

@ -643,7 +643,11 @@ class Configure extends Object {
if (Configure::read() > 1) { if (Configure::read() > 1) {
$cache['duration'] = 10; $cache['duration'] = 10;
} }
$settings = array('prefix' => 'cake_core_', 'path' => CACHE . 'persistent' . DS, 'serialize' => true); $settings = array(
'prefix' => 'cake_core_',
'path' => realpath($cache['path'].DS.'persistent').DS,
'serialize' => true
);
$config = Cache::config('_cake_core_' , array_merge($cache, $settings)); $config = Cache::config('_cake_core_' , array_merge($cache, $settings));
} }
} }