Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable/clear caching in a controller action #44

Open
dmikester1 opened this issue Jun 8, 2015 · 2 comments
Open

How to disable/clear caching in a controller action #44

dmikester1 opened this issue Jun 8, 2015 · 2 comments

Comments

@dmikester1
Copy link

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.

@migig
Copy link

migig commented Sep 25, 2015

Maybe add the caching to each action individually, and exclude that particular action?

@StefanoChiodino
Copy link

If you extend DonutOutputCacheAttribute you'll have access to the field OutputCacheManager, on which you can call RemoveItem and RemoveItems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants