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
On Fri, 2002-06-07 at 06: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.
depends on your content... but if it's "stable" for some minutes, hours or days... i would recommend SQUID as reverse proxy. http://www.zope.org/Members/itamar/Squid greetings, maik. -- Maik Jablonski Deutsche Zope User Group www.zfl.uni-bielefeld.de www.dzug.org
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 )
At 06:48 07-06-2002 +0200, 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.
- Install CallProfiler - RAM cache any methods (DTML or Python) that show up in red - HTTPCache all images that you have that are common to most/all pages C U! -- Mario Valente
On Thu, 13 Jun 2002 21:42, Mario Valente wrote:
At 06:48 07-06-2002 +0200, 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.
- Install CallProfiler - RAM cache any methods (DTML or Python) that show up in red - HTTPCache all images that you have that are common to most/all pages
I started a thread on this a while ago: http://groups.yahoo.com/group/zope/message/90077 I'm putting together a page on zope.org that summarises the info from that thread. Richard
participants (5)
-
Chris McDonough -
Daniel Meier -
Maik Jablonski -
Mario Valente -
Richard Jones