i put it in core.php like this and stil error :(
// File storage engine.
//default dir is /app/tmp/cache/
Cache::config('default', array('engine' => 'File', //[required]
'duration'=> 3600, //[optional]
'probability'=> 100, //[optional]
'path'
=> '/tmp', //[optional] use system tmp directory -
remember to use absolute path
'prefix' => 'cake_', //[optional] prefix every cache file
with this string
'lock'
=> false, //[optional] use file locking
'serialize' => true, //[optional]
)
);
// APC (Alternative PHP Cache)
Cache::config('default', array('engine' => 'Apc', //[required]
'duration'=> 3600, //[optional]
'probability'=> 100, //[optional]
)
);
// Xcache (PHP opcode cacher)
Cache::config('default', array('engine' => 'Xcache', //[required]
'duration'=> 3600, //[optional]
'probability'=> 100, //[optional]
'user'
=> 'admin', //user from xcache.admin.user settings
'password' =>
'your_password' //plaintext password
(xcache.admin.pass)
)
);
//Memcache
Cache::config('default', array('engine' => 'Memcache', //[required]
'duration'=> 3600, //[optional]
'probability'=> 100, //[optional]
'servers' => array(
'127.0.0.1', // localhost, default port
'10.0.0.1:12345', // port 12345
), //[optional]
'compress' => true, // [optional] compress data in Memcache
(slower, but uses less memory)
)
);
// Cake Model
Cache::config('default', array('engine' => 'Model', //[required]
'duration'=>
3600, //[optional]
'probability'=>
100, //[optional]
'className' =>
'Cache', //[optional]
'fields' =>
array('data' => 'data',
'expires' => 'expires'),
'serialize' =>
true //[optional]
)
);
Cache::config('default', array('engine' => 'File'));
On Oct 24, 11:17 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Check the nightly app based application, the core contains what you
> should do.
>
> On Oct 24, 7:18 pm, Mech7 <[EMAIL PROTECTED]> wrote:
>
> > I updated cake 1.2 from the nightly yesterday.. only now i get this:
>
> > Warning: Cache not configured. Please use Cache::config(); in APP/
> > config/core.php in C:\wamp\www\cake_1.2\cake\bootstrap.php on line 52
>
> > Fatal error: Call to undefined method Cache::config() in C:\wamp\www
> > \cake_1.2\cake\bootstrap.php on line 53
>
> > Where should i configure the cache ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---