How to be smarter than the "smart" cache ?

Author Message

Xavier Dutoit

Wednesday 21 November 2007 1:23:21 am

Hi,

I have a list of the latest news in the home page that fetch all the content below the node media/new

When I publish a new content (class news) under media/news, I doesn't refresh the HP (standard behaviour).

So I added that in the viewcache.ini.append of the admin siteaccess:

[ViewCacheSettings]
SmartCacheClear=enabled

[news]
MaxParents=3
ObjectFilter[]
ObjectFilter[]=41
#clear the home page (related to media folder id 41)
ClearCacheMethod[]
ClearCacheMethod[]=relating

And I related the home page node with the media node.

cleared all cache

However, when I modify a new, it doesn't update the home page. Do you have any idea ?

More generally, the smart cache is seriously black magic, the syntax seems to change from version to version (I'm on 3.9.10) and I really don't know how to debug it, or to see if one of the extra rule is taken into account or not.

Any suggestion more than welcome.

X+

http://www.sydesy.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.