mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Setting default value for cache duration
This commit is contained in:
@@ -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); }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user