Setting default value for cache duration

This commit is contained in:
Sebastien Ros
2014-03-17 17:27:03 -07:00
parent dca5a0ccff
commit 632749b145

View File

@@ -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); }
}