[Zope] Ram cache and ZPT

Shane Hathaway shane@zope.com
Fri, 27 Sep 2002 10:39:51 -0400


Andy McKay wrote:
> So Im fine tuning my Plone site, by putting some ram caching on. So i
> customized two objects about_slot and links_slot (both page templates) and
> put them in ram cache.
> 
> I then hit the a page a few times, no hits to the cache, it seems these
> pages are being rendered every time.
> 
> Basically lslot is passed through as a string in the main template for each
> slot, to the following code, so for example here/about_slot/macros/aboutBox.
> 
> <metal:block use-macro="python:path(lslot)">
> 
> This is Zope 2.5.1.
> 
> Any ideas?

You can't cache macros, if that's what you mean.  Because of the way 
page template macros work, their execution can't be managed by a cache 
manager.  Entire templates, on the other hand, can be cached.

Or did I misunderstand?

Shane