Sitefinity MVC Feather Widgets - prevent caching
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?
I have the same requirement on the controller action method.
I'm using 9.1 and 8.2 Sitefinity.
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.