On Tue, Dec 14, 2004 at 10:13:37AM -0500, Andrew Sawyers wrote:
John Poltorak wrote:
On Mon, Dec 13, 2004 at 06:32:55PM -0500, Tres Seaver wrote:
John Poltorak wrote:
This is something completely new to me... Do I install a CMP for each site I host or can I have a global policy for the Zope instance?
You may do either. CMF skin methods will acquire 'caching_policy_manager', if they can, from any parent (but only from the "nearest" one above them).
How can I see the effects of the caching policy manager? Does it create new headers? I've added a CPM but can't tell if it is doing anything.
Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
What policy did you add?
In the root folder I have:- Policy ID policy1 Predicate python:1 Mod.Time content/modified Max age (secs) 300 some of these values were defaults.
If you followed my example, look for the cache-control header.
Use wget -S url
wget -S http://localhost/ returns:- --15:22:01-- http://localhost/ => `index.html.1' Resolving localhost... done. Connecting to localhost[127.0.0.1]:80... connected. HTTP request sent, awaiting response... 1 HTTP/1.0 200 OK 2 Server: Zope/(Zope 2.7.3-0, python 2.3.4, os2emx) ZServer/1.1 Plone/2.0.5 3 Date: Tue, 14 Dec 2004 15:22:02 GMT 4 Content-Length: 3053 5 Content-Type: text/html 6 X-Cache: MISS from localhost 7 X-Cache-Lookup: HIT from localhost:80 8 Connection: keep-alive Not sure if this includes the cache-control header you are referring to... Should squidclient return something similar?
Andrew
-- Zope Managed Hosting Systems Administrator/Software Engineer Zope Corporation (540) 361-1700
-- John