Skip to content

Commit 0db5040

Browse files
committed
Continuing investigations on issue #23, still works for me.
1 parent c2e277d commit 0db5040

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

DevTrends.MvcDonutCaching.Demo/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

DevTrends.MvcDonutCaching.Demo/Web.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
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">

0 commit comments

Comments
 (0)