Re: [cherrypy-users] Problem with caching

71 views
Skip to first unread message

Tim Roberts

unread,
Oct 16, 2012, 12:54:22 PM10/16/12
to cherryp...@googlegroups.com
Maulynvia wrote:
>
> whatever I do, cherrypy seems to cache pages - when I restart the
> server, I see the fresh page I want in the browser. How do I configure
> so that pages are not cached?

CherryPy does not cache pages. I see you're using Yahoo as your ISP.
Yahoo has some rather aggressive proxy servers that cache pages on your
behalf whenever possible, and even when impossible in some cases.
That's how they are able to advertise "faster browsing!" If you press
Ctrl-F5, you should be able to bypass the cache.

If that's what is causing your problem, then you need to include
http-equiv lines in your web pages to make the pages non-cachable. A
Google search should help:

http://www.htmlgoodies.com/beyond/reference/article.php/3472881/So-You-Dont-Want-To-Cache-Huh.htm

--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Maulynvia

unread,
Nov 12, 2012, 8:09:53 AM11/12/12
to cherryp...@googlegroups.com
Thanks Tim
this was really puzzling me (I'm just using localhost, so its not  yahoo or anyone)
I think CP can cache (otherwise what's the point of the config {'tools.caching.on': False})
But your comments inspired me to dig deeper
I think I have been misusing sqlalchemy. I needed Scoped Sessions as described here sqlalchemy - http://docs.sqlalchemy.org/en/rel_0_7/orm/session.html#unitofwork-contextual 

thanks
M
Reply all
Reply to author
Forward
0 new messages