mvcdonutcaching
mvcdonutcaching copied to clipboard
How to disable/clear caching in a controller action
I need to disable or clear the donut caching when a specific action occurs in my controller. How can I do this? I am using asp.net and MVC.
Maybe add the caching to each action individually, and exclude that particular action?
If you extend DonutOutputCacheAttribute you'll have access to the field OutputCacheManager, on which you can call RemoveItem and RemoveItems.