[Zope] Cacheing

Martijn Faassen m.faassen@vet.uu.nl
Tue, 14 Sep 1999 17:33:26 +0200


Evan Simpson wrote:
> 
> Rob Page wrote:
> 
> > Over time you learn that dtBigExpensivePage is, in fact, expensive to
> > render.  Sooo, you might create a ZCache object in Folder foo called
> > dtBigExpensivePage and move the DTML Method dtBigExpensivePage into the
> > ZCache (a folderish thing) object dtBigExpensivePage.
> >
> > As a result, you'd be able to access
> > http://machine.com/foo/dtBigExpensivePage and get the cached rendering
> > and maybe access:
> >
> > http://machine.com/foo/dtBigExpensivePage/dtBigExpensivePage to get the
> > uncached rendition.
> >
> > Of course, this lets you, over time and selectively build cached
> > renditions of expensive objects...
> 
> That's basically what I was thinking, yes.

Sounds like a good way to cache XML Documents renderings too! This
sounds quite elegant as it'd work with most objects out of the box.
There might be some interactions with acquisition that could muddle
things, though..

Regards,

Martijn