[Zope-dev] Re: Caching ZCatalog results

Dieter Maurer dieter at handshake.de
Fri Feb 23 14:43:30 EST 2007


Roché Compaan wrote at 2007-2-23 18:44 +0200:
> ...
>Cool idea. I haven't done any coding involving OFS.Cache though. Looking
>at it briefly it looks like one can modify the catalog to subclass
>OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
>ZCacheable_invalidate methods to interact with a cache manager. This
>needs to be pretty explicit though. Are there any side effects that I
>should guard against if the catalog subclasses OFS.Cache?

A RAMCache cannot cache the result afte "LazyMap" has been applied
to it. The result before "LazyMap" can be cached and the cached
value needs to be "LazyMap"ped before it is returned.



-- 
Dieter


More information about the Zope-Dev mailing list