How to detect if content is personalised on current page


Hi All,


Does anyone know if there is a way to easily find out if any content has been personalised on the current page. The reason behind this is I want to turn off output caching for the current page if it contains personalised content using the SetCachePolicy() method override.


Thanks in advance,


Jan 30, 2014 4:22

I haven't tried this, but there is a method in the EPiServer.Personalization namespace that looks promising:

// Gets the groups that are used for personalization on current page.


Jan 30, 2014 9:48

Thanks for that Mari. I'll give it a try and let you know how I go with it.

Feb 02, 2014 22:40
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.