Forums / General / Avoid clear caching after forum reply

Avoid clear caching after forum reply

Author Message

Michael Zeidler

Monday 13 September 2004 3:17:27 am

Hi,

as you might have noticed according to my previous messages, I am about to optimize the response time of my ezsite using version 3.4.1 ;).
How could I avoid the clear caching when a forums entry was sent to a forum. Otherwise a new entry would initiate a publish action followed by clearing the whole template cache (equivalent to (ezsite)/bin/shell/clear-cache --clear-tpl). Of course this would make sense when you have for instance on your entry page notices about new entries in your forum.
Unfortunately you cant define dependencies about what cache-files should be deleted after a certain publish action.

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Michael Zeidler

Tuesday 14 September 2004 12:52:44 am

Maybe it is possible to determine what cache files are involved with a section. So when for instance the forum has its own section the publishing process for an forum entry could clear the cache only for this section.
To keep on dreaming it would be nice to add this section any URLs and the additional pieces of information to reproduce the cache-block key which could be used for explicit clearing from cache. This way the page in another section which shows news about forum entries could be cleared from cache too.
Btw. How is this solved on the ez.no site? I cant imagine that every forum entry clears the cache each time for the whole site?

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Ole Morten Halvorsen

Tuesday 14 September 2004 2:06:55 am

Cupic,

On publish eZ publish deletes all the ViewCache, however this bad behaviour is fixed in SVN (3.4 stable and trunk) and a new smart viewcache mechanism is added. After this fix only published nodes of the object, parent nodes and nodes of reverse related objects is cleared.

Read about it here: http://ez.no/ez_publish/documentation/incoming/smart_viewcache_cleaning_system

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578