[Zope] Caching zope pages
Andrew Sawyers
andrew at zope.com
Mon Dec 13 14:30:42 EST 2004
John Poltorak wrote:
> On Mon, Dec 13, 2004 at 02:15:01PM -0500, Andrew Sawyers wrote:
>
>>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?
>>>
>>
>>You need to set cache headers. I use the cache policy manager in the
>>CMF for this. Note: If Squid and Zope are on different servers, make
>>sure your clocks are in sync.....
>
>
> I'm using the same host... Is the cache policy manager something I should
> expect to be installed already?
Not sure; I typically script all my builds, so I do it manually. In
your CMF instance, it will be in the ZMI product pull-down: "CMF
Caching Policy Manager"
>
> Where do I read up about it?
Good question :) I don't know.... For a test, you can setup a Policy
as follows:
Policy ID: default
Predicate: python:None
Max age: 300 <-- 5 minutes
Check the 'Must-Revalidate' box.
Depending on your expectations and needs, it could get complex setting
up policies.
Andrew
--
Zope Managed Hosting
Systems Administrator/Software Engineer
Zope Corporation
(540) 361-1700
More information about the Zope
mailing list