无效整个输出缓存中的ASP.NET MVC 2 [英] Invalidate the whole output cache in asp .net MVC 2

查看:157
本文介绍了无效整个输出缓存中的ASP.NET MVC 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这怎么可能无效在ASP.NET的MVC 2的整个输出缓存?

How is it possible to invalidate the whole output cache in asp .net mvc 2?

推荐答案

据我所知,这是不可能的。您只能作废,可能已经被缓存通过与 [的OutputCache] 属性装饰他们的具体行动。

AFAIK this is not possible. You can only invalidate specific actions that might have been cached by decorating them with the [OutputCache] attribute.

HttpResponse.RemoveOutputCacheItem(Url.Action("Index", "Products"));

这篇关于无效整个输出缓存中的ASP.NET MVC 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆