Cache indirect output of Sitecore controls

CONTEXT

In my previous post I’ve described solution that allow you to inject scripts and styles in a specific placeholders in a layout. Scripts are registered in views, but they will be rendered by global filters only when all output of a page is ready. However, when it comes to caching Sitecore will be able to record HTML generated by your component just after it is rendered.
So none of the actions that will be required in other parts of the site will be triggered with cache enabled.

Continue reading “Cache indirect output of Sitecore controls”

Cache indirect output of Sitecore controls