Forums / Install & configuration / Reverse related objects and smart cache clear
Christian Johansen
Wednesday 07 March 2007 6:24:17 am
Hi,
I have this kind of relation:
- Some Folder - Ad provider - Ad provider 2 - Some other folder - Ad (With Ad provider stored in an object relation)
This is all good. However - if I update "Ad provider", "Ad" fails to be updated. I have tried everything in viewcache.ini - this was my last try:
[Ad] DependentClassIdentifier[] DependentClassIdentifier[]=ad_provider DependentClassIdentifier[]=ad DependentClassIdentifier[]=folder ClearCacheMethod[] ClearCacheMethod[]=all MaxParents=3
But since "reverse_related" isn't a possibility I guess this doesn't work? Has anyone got any idea how I can make this work?
Bayron Guevara
Friday 13 June 2008 7:54:40 am
Smart View Cache have a configuration directive called ClearRelationTypes which especified what type of relation are affected when you use ClearCacheMethod[]=relating, by default only common, reverse_common and reverse_xml are used. In your case put this whithin ViewCacheSettings
[ViewCacheSettings] ClearRelationTypes[]=reverse_attribute
Web Developer & Modern Philosopher Visit http://www.laprensa.hn, http://www.diez.hn, http://www.estilo.hn