Cache & filesystem directory view
Hi, is possible to cache objects that have been hooked in via filesystem directory view using RAM Cache Manager or Accelerated HTTP Cache? Examples are Filesystem Page Templates, Filesystem Images an others. Thank you and happy Zopeing. Mitja Martini ________________________________________________________________ Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
Nope, but many people want it. Patches welcome ;) -- Andy McKay www.agmweb.ca ----- Original Message ----- From: "Mitja Martini" <mmartini@web.de> To: <zope@zope.org> Sent: Monday, October 21, 2002 10:50 AM Subject: [Zope] Cache & filesystem directory view
Hi,
is possible to cache objects that have been hooked in via filesystem directory view using RAM Cache Manager or Accelerated HTTP Cache?
Examples are Filesystem Page Templates, Filesystem Images an others.
Thank you and happy Zopeing.
Mitja Martini
________________________________________________________________ Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
_______________________________________________ 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 )
Hi, yesterday evening I took a deeper look into the code and this is what seems to work - at least for the AcceleratedHTTPCacheManager: Changes in CMFCore/FSPageTemplate.py (CMF V 1.3): In line 20 (or so) add: from OFS.Cache import Cacheable Line 39 change to: class FSPageTemplate(FSObject, Script, PageTemplate, Cacheable): In line 49 add: + Cacheable.manage_options Line 73 change to: return 1 With these few changes you can associate all FSPageTemplates. They don't show up in the "Of the type(s) list", but can be added by locating all objects. The generated pages are obviously cached in the browser and the cache statisics note all hits. Unfortunately the RAMCacheManager is not amused: You can add the FSPageTemplates but the result is not faster and the stats do not show anything. Now I have four new questions: 1. Is this solution OK or do you (or anybody else) see something strange? 2. Why is this not working with the RAM Cache Manager? 3. Is it possible to prevent addition to the RAM Cache Manager? 4. How can the FS.. Objects be added to the "Of the type(s)" list? Thank you for your help. Mitja Martini PS: The changed FSPageTemplate.py can be found here: http://plone.org/Members/mitja/FSPageTemplate.py/file_view
Hi, my solution seems to work also with the RAM Cache Manager: With Apache Benchmark my Plone homepage shows up 2,4 times/s without and 8 times/s with RAM cache. Now also the statistics are updated. Sorry for my mistake. Greetings, Mitja Martini
participants (2)
-
Andy McKay -
Mitja Martini