[Zope-CMF] RAM Cache and CMF objects?

seb bacon seb@jamkit.com
22 Mar 2002 18:03:37 +0000


On Fri, 2002-03-22 at 17:22, Tres Seaver wrote:
> On Thu, 2002-03-21 at 09:00, seb bacon wrote:
> > > I can't imagine ever wanting to use RAM caching for full pages;  you
> > > are "robbing Peter to pay Paul" there, inevitably.  Instead, we are
> > > focusing heavily on improving our interactions with external HTTP
> > > servers (notably Squid).
> > 
> > True, but RAM caching is still useful where pages which use expensive
> > operations must always be served fresh.  Do you folks see this
> > requirement as important, or do you think it can always be avoided with
> > a combination of efficient code and HTTP caching?
> 
> 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.

seb