Forums / Setup & design / How to clear the cache of a non parent object ?
Xavier Dutoit
Thursday 17 November 2005 3:18:30 am
Hi,
I have a page (a folder) that displays the latest links (a custom template with a tree fetch filtered on classtype=links.
The problem is that when I publish a new link, this page isn't updated.
On the viewcache.ini.append.php, I've tried to add the object id:
[link] DependentClassIdentifier[] DependentClassIdentifier[]=folder ObjectFilter[] ObjectFilter[]=<home page id> ObjectFilter[]=<latest links id> ClearCacheMethod=clear_object_caches_only
The cache is cleared fine for the home page, but isn't for the latest links page (that isn't a parent of the link).
How do you clear non parent nodes ?
I tought about relating my "latest links" page to the home page and change the clear cache method to clear both the object and the related objects, but I find it quite an ugly hack.
Do you have a suggestion ?
X+
http://www.sydesy.com