在开发系统上禁用OutputCache [英] Disable OutputCache on Development System

查看:63
本文介绍了在开发系统上禁用OutputCache的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.net MVC应用程序中使用OutputCache。由于使用活动的OutputCache进行开发并不是一件令人愉快的事情,因此我想在开发系统(本地计算机和开发服务器)上禁用OutputCache。

I use OutputCache in an ASP.net MVC application. As developing with an active OutputCache is not very pleasant I want to disable the OutputCache on the Development Systems (local machines and development server).

最好的方法是做什么

推荐答案

这是一个旧版本,但是...

It's an old one but...

在system.web下的web.config中进行设置

set this in your web.config under system.web

<caching>
  <outputCache enableOutputCache="false" />
</caching>

这篇关于在开发系统上禁用OutputCache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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