[Zope] Re: Cache Manager scope

Dieter Maurer dieter@handshake.de
Wed, 19 Feb 2003 20:06:12 +0100


Josef Meile wrote at 2003-2-18 20:32 +0100:
 > > there is no built-in scope - you must explicitly assign items to the
 > > cache manager instance. you can do it using the "Cache" tab on the
 > > object you want to cache or the "Associate" tab on the cache manager
 > > itself. this will become very obvious when you instantiate the cache
 > > manager and look at it.

 > Yes, I know how it works. The problem is that I have lots of folders and
 > selecting/discarting the objects on each one would take a long time. It
 > would
 > be easier if I could just say that I don't want to scan one or more
 > subfolders,
 > but I want to go through the rest.

Everything you can do through the ZMI can be automated (look at the ZMI source).
Use "ZopeFind" in an appropriate script to enumerate all objects
you want to associate with a cache manager.
Automate the association...


Dieter