Forum OpenACS Development: Re: Caching: db_cache_pool vs. util_memoize

Posted by Malte Sussdorff on
Reading up on that, util_memoize has the benefit that it works across clusters. Does the db_cache support that as well?

Additionally I am wondering, especially due to the cluster situation, if we should not have a wrapper for ns_cache, which allows us to flush the cache across the cluster if needed.

My assumption is that we will probably need a wrapper for ns_cache, which behaves similar to util_memoize with regards to clusters (and the flush-memoized-statement.tcl file), but offers more functionality and if it is only the name of the cache to use.

Last but not least I am wondering where we should provide the functionality to set the size of the caches? At the moment this is done in the Kernel parameters, so should each new cache have it's own setting there? How about default timeouts?