This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.0 » sfMemCache problem - cached data does not expire
sfMemCache problem - cached data does not expire [message #98315] Fri, 30 April 2010 15:01 Go to next message
iulia_mihaela  is currently offline iulia_mihaela
Messages: 3
Registered: April 2010
Location: romania,bucuresti
Junior Member
Hello,

First of all i wanna say that i'm new to symfony, so if this seems to you a stupid question, please excuse me... Smile

So, i have a problem with sfMemCache plugin... i installed it and now i realize that the cahe does not expire

I have set in cache.yml the lifetime and all the other settings, but it seems useless.

I don't get any error or something like this... i set the cache to expire after 1 hour, but it doesn't and the new modifications made are never displayed....

Please, please heellp me! I have been trying to solv this from many hours.
I don't know what else to try " Sad


PS: excuse my bad english Sad

Thank you very much.

I'm waitting for you answers Sad

Re: sfMemCache problem - cached data does not expire [message #98651 is a reply to message #98315 ] Fri, 07 May 2010 11:44 Go to previous messageGo to next message
iulia_mihaela  is currently offline iulia_mihaela
Messages: 3
Registered: April 2010
Location: romania,bucuresti
Junior Member
Doesn't any one have any idea?
i'm willing to try anything ...
please help me Sad
I can't figure out where is the problem Sad(
Re: sfMemCache problem - cached data does not expire [message #98930 is a reply to message #98651 ] Wed, 12 May 2010 14:48 Go to previous messageGo to next message
iulia_mihaela  is currently offline iulia_mihaela
Messages: 3
Registered: April 2010
Location: romania,bucuresti
Junior Member
i have solved my problem... Very Happy

in sfMemcacheCache.class.php i made this modification:

$refreshTime = time() - $this->getLifeTime();
if (($std instanceof Stdclass) && ($std->lastModified>$refreshTime))
{
return $std->data;
}
else throw new Exception ('Could not find cache');


i hope this will be usefull on the future Smile
Re: sfMemCache problem - cached data does not expire [message #98944 is a reply to message #98315 ] Wed, 12 May 2010 17:36 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Thanks for posting your solution. You'll probably be aware that many people have moved on from 1.0 (though we haven't!). Thus, the number of people who are using 1.0 *and* sfMemCache is probably quite small now.


Remember Palestine
Previous Topic:form_remote_tag fillin issue
Next Topic:sql queries do not appear in the web debug bar
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software