2013-07-15 37 views
2

如何重置/更新/刷新ASP.NET MVC中緩存的PartialViewResult(OutputCache)?重置使用OutputCache設置的PartialViewResult

我想通過ActionLink執行此操作。

我用這個代碼在的ActionResult:

OutputCacheAttribute.ChildActionCache = new MemoryCache("CachedTable"); 

但它重置所有我緩存的部分景色。

+1

我想這可能會幫助你 http://stackoverflow.com/questions/1167890/how-to-programmatically-clear-輸出緩存換控制器 - 動作 - 方法 – Moin

回答