Is there a was to set the duration of caching in the web.config for MVC4 .net pages? I have :
[OutputCache(Duration = Convert.ToInt32(ConfigurationManager.AppSettings["cache.eventPage"]), VaryByParam = "Id")]
public ActionResult....
Which will not compile because
An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
We have very spikey traffic and would like to be able to change this value very quickly with out pushing out a new build. Is this possible?