I'm in the process of adding caching to some directories.
The idea is to use the standard Zope framework of caching:
- The directory object is made ZCacheable-aware,
- You instantiate a RAMCacheManager somewhere (typically here in
portal_directories),
- You configure that cache with the timeout and parameters you need,
- You associate one or several directories with the cache.
If different caching needs exist, you just create several cache
managers and associate different directories to them.
I'll start by doing the code for LDAP directories, then SQL and ZODB.
Then I'll probably remove the caching that is now part of
CPSUserFolder, as it will be redundant.
Eventually I'd like all caching aspects in CPS to be treated that
way. If needed we can extend the RAMCacheManager into a CPS version
if it lacks important things, but the framework is pretty sound.
Florent
--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel