Forums / Install & configuration / Reverse related objects and smart cache clear

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Reverse related objects and smart cache clear

Author Message

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