ezcomments and cache

You need to be logged in to post messages in the forums. New users may register here.

Marko Zmak

Member since:
09 January 2008

Posts: 25

Monday 04 October 2010 7:47:10 am

How does ezcomments behave with the eZ caching mechanism?

- does it follow the SmartCache rules?
- does it clear the template block cache of cache-blocks that have the commented node in it's subtree_expiry?
- does it trigger static cahce cleanup when needed?


--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Up

Chen Xiongjie

Member since:
24 August 2009

Posts: 14

Monday 04 October 2010 8:18:14 am

Hi Marko,

Currently eZ Comments uses cache-block in displaying comments. It's based on uri, role, and limitation assigned. Eveytime a new comment is put on, it will clear the cache(static cache).

- does it follow the SmartCache rules?
It should be configurable. use objectid of object that comments are on.
http://doc.ez.no/eZ-Publish/Techn...ew-caching/Smart-view-cache-cleaning

- does it clear the template block cache of cache-blocks that have the commented node in it's subtree_expiry?
This is not set up. See code in design/standard/templates/comment/view/view.tpl, override if you need.
- does it trigger static cahce cleanup when needed?
yes.

Up

You need to be logged in to post messages in the forums. New users may register here.