Skip to content.

plope

Personal tools
You are here: Home » PyCon DC 2004 Sprint Days 1-2 » AdaptableCacheManager?
 
 

Comment

Above in this comment thread: PyCon DC 2004 Sprint Days 1-2

AdaptableCacheManager?

Posted by slinkp at 2004-03-22 10:46 AM
I had a thought last night after we finished... it might be nice to have a more adaptable cache manager which would have multiple caches (at least one RAMCache and one HTTPCache, optionally a FileCache or another third-party cache), and a list of rules for determining which cache to use for associated objects. The UI might borrow a bit from CMF's Caching Policy Manager.
The rules could maybe be written as TALES expressions.

Unfortunately, AFAICT this only solves half the problem... in OFS/Cache.py, Cacheable assumes that it is associated with at most one cache and at most one cache manager. Maybe there'd be a way to write an adaptable cache that wraps multiple underlying caches, I dunno.

And change Cache.py...

we could change ZCacheable.ZCacheable_getCache() to return something that wraps one or more underlying caches.