Sitecore, by default, provides varies options like Vary by Data, Vary by Query String to enable HTML cache (more information about Sitecore caching could be found here). Sometimes none of these options (based on component built type) help the component to get cached by Sitecore cache.
In this article I will describe how to introduce custom VaryByCache option. It’s pretty simple.
First of all, let’s create a new template where all custom VaryByCache options will be presented.
Continue reading “Sitecore MVC – Custom Vary By Cache Options”