Hi,
I have some code:

@beaker_cache(key=['category_name_link', 'title_link'], type='file', 
expire=3600)
def content(self, category_name_link, title_link):

and all is OK, but:

@beaker_cache(key=['category_name_link', 'title_link'], type='file', 
invalidate_on_startup=True, expire=3600)
def content(self, category_name_link, title_link):

is not work that I want.
invalidate_on_startup == True then method is cached to next restart 
application and it's work for

paster serve --reload deployment.ini

but not for mod_wsgi on apache2:

If I add invalidate_on_startup=True to @beaker_cache then my content 
method is not cached or maybe not use it.
I don't know what I'm doing wrong. I want to usability to clear cached 
contents after sudo apachectl restart.
I have the same config ini for paster and mod_wsgi.

Best Regards,
Tomasz Narloch

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to