From 632749b14507a6e6fc48f61c483cb04c238ed428 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Mon, 17 Mar 2014 17:27:03 -0700 Subject: [PATCH] Setting default value for cache duration --- .../Modules/Orchard.OutputCache/Models/CacheSettingsPart.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.OutputCache/Models/CacheSettingsPart.cs b/src/Orchard.Web/Modules/Orchard.OutputCache/Models/CacheSettingsPart.cs index a30db7854..286880e56 100644 --- a/src/Orchard.Web/Modules/Orchard.OutputCache/Models/CacheSettingsPart.cs +++ b/src/Orchard.Web/Modules/Orchard.OutputCache/Models/CacheSettingsPart.cs @@ -5,7 +5,7 @@ namespace Orchard.OutputCache.Models { public const string CacheKey = "CacheSettingsPart"; public int DefaultCacheDuration { - get { return this.Retrieve(x => x.DefaultCacheDuration); } + get { return this.Retrieve(x => x.DefaultCacheDuration, 300); } set { this.Store(x => x.DefaultCacheDuration, value); } }