Hi,
I'm pretty new to Cakephp. I'm trying to use Apc engine and I'd like my
cached stuff gets expired in 3 days. However, it seems like the expiration
time is just a few hours, as when the user logs in, s/he will be logged out
in a few hours.
Here is all the changes I have made in my bootstrap.php and core.php:
in bootstrap:
I just commented out "//Cache::config('default', array('engine' =>
'File')); " and added:
Cache::config('default', array(
'engine' => 'Apc', //[required]
'duration' => 4320, //[optional]
'probability' => 100, //[optional]
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every
cache file with this string));
and in Core.php:
I added timeout parameter:
Configure::write('Session', array(
'defaults' => 'php',
'timeout' => 4320
));
I checked most of the relevant questions and none of the solutions worked
for me:
Changing 'timeout' to 'session.timeout', changing 4320 to '4320' and ,...
Thanks for you help in advance. :)
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.