Let's assume the following code:
[OutputCache(Duration=60,VaryByCustom="Browser")]
public ActionResult CachableAction(string SomeParameter)
{
return View();
}
I know that Output caching lets you store the output of an action method in memory on the Web server. For example, if the action method renders a view, the view page will be cached.
I don't want to cache my pages in Debug configuration.
What settings are need for to apply cache only in Release configuration not Debug ?
I'm using VS2010.