Forums / Developer / ViewCache.ini rules question
Joël LEGER
Monday 12 October 2009 2:07:56 am
Hi,
i can't figure out how to clean the cache of very specific case.
here is the situation SmartCacheClear is enable.class1 -> class 2 -> class3 object relation with class4 -> class5
So i would like when a new version of the object from class5 is published that the object from class1 is clear.
so far i have this settings :
[ViewCacheSettings] SmartCacheClear=enabled [ViewCacheSettings] ClearRelationTypes[] ClearRelationTypes[]=common ClearRelationTypes[]=reverse_common ClearRelationTypes[]=reverse_embedded ClearRelationTypes[]=attribute ClearRelationTypes[]=reverse_attribute [class5] DependentClassIdentifier[] DependentClassIdentifier[]=class4 DependentClassIdentifier[]=class3 DependentClassIdentifier[]=class2 DependentClassIdentifier[]=class1 ClearCacheMethod[] ClearCacheMethod[]=object ClearCacheMethod[]=relating ClearCacheMethod[]=all
any ideas?
André R.
Tuesday 13 October 2009 5:16:33 am
viewcache.ini doesn't allow you to clear indirect relations, except with AdditionalObjectIDs[].So if that doesn't work for you, you'll need to simplify it or create a workflow where you manually clear the viewcache.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom