Sitefinity MVC Feather Widgets - prevent caching

Posted by Community Admin on 04-Aug-2018 23:20

Sitefinity MVC Feather Widgets - prevent caching

All Replies

Posted by Community Admin on 18-Aug-2016 00:00

I'm using the feather package and building feather widgets for Sitefinity 9.1. I can't seem to override the Output Cache for the widgets using the OutputCache attribute: [OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]. I don't want to have to disable caching at the page level, just at the widget level. How do I disable caching at the widget level in Sitefinity?

Posted by Community Admin on 14-Sep-2016 00:00

I have the same requirement on the controller action method.

I'm using 9.1 and 8.2 Sitefinity.

Posted by Community Admin on 14-Sep-2016 00:00

So, I ended up using a combination of listening for the "PageManager.Executing" event in the global.asax (docs.sitefinity.com/tutorial-subscribe-to-events-using-dataprovider-or-manager-class & www.americaneagle.com/.../clear-a-page-s-output-cache-programmatically-in-sitefinity)  and adding cache dependencies to my mvc widget (docs.sitefinity.com/for-developers-implement-cache-dependencies) to un-cache the pages. 

This thread is closed