Possible Duplicate:
How to programmatically clear outputcache for controller action method
How to clear cache in specified controller?
I try to use several approaches:
Response.RemoveOutputCacheItem();
Response.Cache.SetExpires(DateTime.Now);
There is no any effect, it not work. 🙁
May be exists any way to get all keys in controller cache and remove they explicitly?
And in which overridden method i should perform clear cache? and how to do that?
Does any ideas?
try this:
put this on your Model:
and on your specific controller:
e.g:
source: original code