Forums / Developer / Clear the view cache for all the siblings of this node/object.

Clear the view cache for all the siblings of this node/object.

Author Message

Romeo Antony

Tuesday 09 November 2010 2:50:52 am

Hi ,

Just curious to know, I have an issue while I set up my smart view cache for ez site.

this is the way my content node tree structure

--folder(root)

------------------- --folder1

------------------- --folder2

---------------------------------- --folder3

--------------------------------------------------custom_article1

---------------------------------- --folder4

--------------------------------------------------- --article2

for smart view cache I have set up

[ViewCacheSettings]
SmartCacheClear=enabled

[article]
DependentClassIdentifier[]=folder
ClearCacheMethod[]=sibling

when publish an article from folder4, smart view cache will take the path as string as

folder(root)/folder2/folder4/article2

I do not know why view cache for custom_article1

is not been cleared. If i have already set up like DependentClassIdentifier[]=folder and ClearCacheMethod[]=sibling.

Anyone knows why view cache for custom_article1 is not been cleared?

simple anyone plz tell me the depth of sibling ?

Is it depth is restricted to 1 ?

Ivo Lukac

Tuesday 09 November 2010 5:20:28 am

Your smart cache config will ensure that folder3 view cache is cleared.

Siblings are nodes with the same parent node id.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Romeo Antony

Tuesday 09 November 2010 11:17:51 pm

There I am.

"Siblings are nodes with the same parent node id."

Thanks Ivo.

I have mistaken sibling can be as if grand child nodes. ... it's child nodes etc. It was my fault