Forums / Setup & design / SmartCacheClear
Christian Johansen
Wednesday 31 May 2006 4:32:26 am
I looked through viewcache.ini and I have to admit I am a little bit confused by it. What I want to do is to set up a strategy such that when an object i published in some given folders I want my frontpage to be updated and other stuff like that. Does anyone have any more information about SmartCacheClear than what is offered through the documentation in the file?
Ćukasz Serwatka
Thursday 01 June 2006 1:39:31 pm
Hi Christian,
What content classes do you use? In case where under folder somewhere in the content structure you publish article, you can use.
in settings/override/viewcache.ini.append.php put:
[ViewCacheSettings] SmartCacheClear=enabled [article] DependentClassIdentifier[] DependentClassIdentifier[]=folder ClearCacheMethod=clear_object_and_parent_nodes_caches
Try with ClearCacheMethod to choose right option for your setup.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Thursday 01 June 2006 10:38:27 pm
Thanks again for your input Lukasz! To check if I got it right - Your example will clear the cache of the object that is edited/created, its parent, and that parents parent and so on? Will it 'bubble' all the way to the top node? Will it only clear cache if an article is created inside a folder?
What about the frontpage and other portal-pages that are not directly connected - ie, they don't have the parent/child relationship, they are not related objects and they don't share keywords, yet the frontpage lists objects from different sections - how can I clear the cache of that? I don't see which ClearCacheMethod will help me do that?