[ZPT] ZPT Speed Tutorial Wanted
Andy Meier
andy@onyourmark.com
Thu, 12 Sep 2002 09:46:40 -0500
I tried adding a cache manager as suggested but it seems to only shave a few
milliseconds off the rendering time of pages.
I don't think I grok the behavior of the cache. In the tab that reports
cache hits and misses, every request was reported as a cache hit (I used the
default 6 minute interval). When viewing the page, however, all the dynamic
sections were still loading the dynamic output (aka: different banners, the
proper user name, etc.) which makes me think the cache does not work the way
I expect.
Does the cache cache the output of an object or does it somehow cache the
object in a way to make it more quickly accessible to the parser?
Thanks for the help!
-Andy
On Tuesday 10 September 2002 04:19, Peter C. Norton wrote:
> The site seems to be down or otherwise unavailable to me, but I'd
> venture that a cache object at the top level with a timeout of 1
> minute or so could speed up your site a lot.
>
> Try adding a RAM Cache manager to your site and associate things that
> may be slower - python methods, database queries, whatever, to that
> cache. I'm not sure how robust the cache is - it probably only works
> for simple memoization, but that should work for a lot of cases.
>
> It seems like if you have forms and things that have shorter cacheable
> lifetimes, you can set up a few different caches - like one for things
> that'll live for 10 minutes, one for things that live for 2 minutes,
> and one for things with a 10 second lifespan. Or whatever paramaters
> get you a 10/second hit rate :)