File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
DevTrends.MvcDonutCaching.Demo Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public ActionResult ExpireSimpleDonutOneCache()
5151 return Content ( "OK" , "text/plain" ) ;
5252 }
5353
54- [ DonutOutputCache ( Duration = 60 * 5 , VaryByParam = "*" , VaryByCustom = "subdomain" ) ]
54+ [ DonutOutputCache ( CacheProfile = "medium" , VaryByParam = "*" , VaryByCustom = "subdomain" ) ]
5555 public ActionResult TestIssue23 ( )
5656 {
5757 return View ( ) ;
Original file line number Diff line number Diff line change 3838 <add namespace =" System.Web.WebPages" />
3939 </namespaces >
4040 </pages >
41+ <caching >
42+ <outputCacheSettings >
43+ <outputCacheProfiles >
44+ <remove name =" medium" />
45+ <add name =" medium" duration =" 600" varyByParam =" *" location =" Any" enabled =" true" />
46+ </outputCacheProfiles >
47+ </outputCacheSettings >
48+ </caching >
4149 <!-- Glimpse: This can be commented in to add additional data to the Trace tab when using WebForms
4250 <trace writeToDiagnosticsTrace="true" enabled="true" pageOutput="false"/> -->
4351 <membership defaultProvider =" XmlMembershipProvider" >
You can’t perform that action at this time.
0 commit comments