Share » Forums » Setup & design » SmartCacheClear

SmartCacheClear

SmartCacheClear

Wednesday 31 May 2006 4:32:26 am - 2 replies

Author Message

Ɓ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

Christian Johansen

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?

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu