[Zope] Re: Caching zope pages

David Chandek-Stark dc at duke.edu
Mon Dec 13 16:45:44 EST 2004


John Poltorak wrote:
> I have been trying to set up Squid as an httpd accelerator for Zope with 
> the idea of speeding up load times, especially for Plone. Unfortunately 
> Squid appears to simply redirect any requests rather than serving them 
> from cache. Is there anything I can do within Zope to allow pages to be 
> cached? Or have I overlooked a Squid setting?
> 

John, I don't know about cache management in Zope (per other responses 
to your post), but make sure you've got Squid configured correctly as 
well. For example, I found that I had to use some explicit refresh 
patterns in squid.conf (I don't know why), such as:

# Folders/default pages
# These don't seem to get cached without a refresh pattern
refresh_pattern /$ 30 50% 60

Use the debug options in Squid. I also recommend looking at the actual 
HTTP headers being sent/received. I use LiveHTTPHeaders for 
Mozilla/Firefox (http://livehttpheaders.mozdev.org/).

--David



More information about the Zope mailing list