[Zope-CMF] RAM Cache and CMF objects?
Tres Seaver
tseaver@zope.com
22 Mar 2002 13:11:48 -0500
On Fri, 2002-03-22 at 13:03, seb bacon wrote:
> On Fri, 2002-03-22 at 17:22, Tres Seaver wrote:
<snip>
> > I can see a need for the kind of caching you describe, but it is *not*
> > "page caching"; the RAM-based cache is fine for such items, but you
> > will want to construct the key for the cache based on other parameters
> > (e.g., the catalog query).
>
> Yes, I realise this. When I said 'expensive operations' I meant
> pythonscripts which do DateTime lookups, etc. My question was if you
> felt that these kinds of hotspots are worth the hassle of sorting out
> some kind of RAM-cache FSObject hook for, or if instead you felt the
> best value is realised by concentrating on the cases where you *can*
> HTTP-cache whole pages.
Whole-page caching gives you lots of "bang-for-buck", because it
allows Squid to take over most of the page-serving burden (90-95%
on the system we know mest) from Zope.
I think that PythonScripts which need caching should be written
specially to take advantage of the CacheManager architecture
(perhaps there is another tool which would help for this kind of
caching). I don't think being able to signal automagic caching
on the FSPythonScript object feels like the Right Thing (tm).
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com