If have a variant that has multiple views, how can I tell which views are used on our site. For example.
If I have a pair of jeans and it is featured on the homepage If I have a jumper and it is NOT featured on the homepage
I want a method that when I pass the jeans product code, it tells me it is on the homepage but if I pass in jumper it tells me it isn't shown on the site.
My understanding is that softlink repository(http://world.episerver.com/documentation/Class-library/?documentId=cms/9/F25E1112) used to do this but that is now marked as deprecated.
We are currently using donut caching and at the moment we have to cache every view of a variant no matter if it is used on the site or not. We are also after something that is efficient, so we don't want to go through every block on the site and see if it contains the product.
Not sure if this might be able to help: http://www.markeverard.com/2015/03/16/helping-episerver-editors-find-unused-content/
The concrete ContentSoftLinkRepository is obsoleted, but you're free to use the IContentSoftLinkRepository which has same functionalities (a bit different signature, thought)
Thanks Quan, you were spot on.