Template Cashing

2009-11-09 Thread alex_zh
Hello. I have a problem with caching of templates. Sometimes users get the pages, that opened before. I don't khow the reason. Is it possible to turn off all the caching in whole pylons-project? --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Template Cashing

2009-11-09 Thread Didip Kerabat
As far as I know, Pylons does not enable caching by default (including template caching). You can turn off caching by not configuring beaker.cache.* inside .ini file. There are a couple of places you can also check: * your render() method might contain cache_expire * some of your mako files may c

Re: Template Cashing

2009-11-10 Thread alex_zh
#baker.cache... is commented in development.ini Also, add response.headers['Cache-Control'] = 'no-store' response.headers['Pragma'] = 'no-cache' response.headers['Expires'] = datetime.datetime.now ().strftime("%a, %d %b %Y %H:%M:%S GMT") return rend