Wednesday 17 January 2007 12:52:28 am
Hi, I usually use the viewcache.ini to configure automatic cache cleaning when I publish objects, and it works well with simple rules. But I have now a problem with a more complex situation :
eZPublish(nodeID = 2, class_identifier = folder)
|
|-- Antenne(nodeID = 20, class_identifier = folder)
|
|-- Rock Alive(nodeID = 84, class_identifier = emission)
|
|-- Rock Alive(nodeID = 135, class_identifier = folder)
|
|-- List 1(nodeID = 150, class_identifier = list_rock)
|
|-- List 2(nodeID = 151, class_identifier = list_rock)
The full view of the Rock Alive emission (84) list the list_rock nodes located in the Rock Alive folder by fetching them. And the problem is that when a new list_rock is added, she don't appears in the full view of emission 84. So i need to write a rules who clear the emission 84 when a lost_rock is published. emission 84 will never be deleted, so we can write a rule based on their node id (84). Here a test rule which don't work :
[list_rock]
DependentClassIdentifier[]
DependentClassIdentifier[]=emission
DependentClassIdentifier[]=folder
MaxParents=2
ClearCacheMethod[]
ClearCacheMethod[]=clear_object_and_relating_objects_caches
Thanks in advance !!
eZ Publish Freelance
web : http://www.webaxis.fr
|