DeWitt Clinton wrote:
> The other question is whether or not to share the cache instance
> itself globally. Technically, this is up to you. Personally I
> wouldn't bother, considering the overhead of instantiating the cache
> is so low that I would rather keep it local to the handler (as I did
> above). I tend to only share data globally in mod_perl handlers very
> judiciously, and even then I wrap the data in an object that provides
> accessor methods. For an example of an object that wraps shared data,
> check out Cache::MemoryCache, which simply caches data inside the
> process.
Wouldn't this cause the cache to be torn down and rebuilt for every
request???
--
"The camel has not evolved to smell good. Neither has Perl."
-- Larry Wall