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...
Posted byslinkpat
2004-03-22 11:03 AM
we could change ZCacheable.ZCacheable_getCache() to return something that wraps one or more underlying caches.
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.