[Zope-CMF] CMF caching policy manager

Tres Seaver tseaver@zope.com
20 Aug 2002 12:52:46 -0400


On Thu, 2002-08-15 at 17:01, alan runyan wrote:
> what about potential wiring this in for *all* FSObjects?
> so that if you have a caching_policy_manager than it overrides the
> HEADER manipulations that come stock. i.e. CMFCore.FSImage.index_html
> 
> what about DTML methods or .CSS/.JS ? these should probably reach into the
> caching policy manager as well?

Wiring in all the FS-based methods was part of the plan, but got
back-burnered because the project where we used this had all the images
and stylesheets stored in the ZODB.

I think this is a SMOP;  what will be harder is finiding a way to use
the CPM even for customized skins.  My notion of a solution to the
harder problem is as follows:

  - Make the CPM implement the ZCacheManager interface.

  - Modify the customization code to create the association with
    the CPM in the customized object, using ZCacheable_setManagerId.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com