[Zope] zopespeed
Chris McDonough
chrism@zope.com
07 Jun 2002 08:46:47 -0400
Yes, unfortunately ZClasses dont play nicely with the cache managers
that we have. :-(
You can use an HTTP cache and set cache headers manually in your
templates.
For example:
<dtml-call "REQUEST.RESPONSE.setHeader('Expires',
rfc822date(ZopeTime.TimeTime())">
<dtml-call "REQUEST.RESPONSE.setHeader('Last Modified',
rfc822date(bobobase_modification_time())">
<dtml-call "REQUEST.RESPONSE.setHeader('Cache-Control', 'whatever this
is supposed to be'">
(where rfc822date is a python script that formats the date string
properly)
HTH,
- C
On Fri, 2002-06-07 at 00:48, Daniel Meier wrote:
> hi there
>
> I'm having some trouble with a site, which is too slow. I tried the httpcachemanager and the
> ramcachmanager. unfortunately I'm not able to cache my own zclasses (they are not listed).
> I use quite a lot of aquisition and a lot of python scripts with "again" a lot of loops.
> I'm using Zope 2.4.3 on a MacOSX machine.
> can you give me some performance tips. thank you for any help.
>
> kind regards
>
> daniel
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )