Clear cache when updating children of embed object

Author Message

Marko Žmak

Friday 06 March 2009 8:54:49 am

I'm looking for a solution of a problem, here's an example...

I have a Gallery class that displays it's children of class Image. Each gallery can be inserted into a XML field of any other object, as embed object. When embed into a XML field the gallery also displays it's children of class Image. What I want to do is this:

- when an image is added (or deleted/updated) as a child to a gallery, the cache of all objects that have this gallery in XML field as embed object should be automatically cleared

How can this be done using eZ cache settings? Maybe SmartCache?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Jean-Yves Zinsou

Saturday 07 March 2009 9:20:12 am

hello,

Yeah, i would say smart cache is the way:
http://ez.no/doc/ez_publish/technical_manual/3_9/features/view_caching/smart_view_cache_cleaning

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.