Orchard/src/Orchard.Web/Modules/Orchard.OutputCache/Models/CacheSettingsPart.cs

42 lines
1.5 KiB
C#
Raw Normal View History

using Orchard.ContentManagement;
namespace Orchard.OutputCache.Models {
2013-11-01 05:49:44 +08:00
public class CacheSettingsPart : ContentPart {
public const string CacheKey = "CacheSettingsPart";
public int DefaultCacheDuration {
2013-11-01 05:49:44 +08:00
get { return this.Retrieve(x => x.DefaultCacheDuration); }
set { this.Store(x => x.DefaultCacheDuration, value); }
}
public int DefaultMaxAge {
2013-11-01 05:49:44 +08:00
get { return this.Retrieve(x => x.DefaultMaxAge); }
set { this.Store(x => x.DefaultMaxAge, value); }
}
public string VaryQueryStringParameters {
2013-11-01 05:49:44 +08:00
get { return this.Retrieve(x => x.VaryQueryStringParameters); }
set { this.Store(x => x.VaryQueryStringParameters, value); }
}
public string VaryRequestHeaders {
2013-11-01 05:49:44 +08:00
get { return this.Retrieve(x => x.VaryRequestHeaders); }
set { this.Store(x => x.VaryRequestHeaders, value); }
}
public string IgnoredUrls {
2013-11-01 05:49:44 +08:00
get { return this.Retrieve(x => x.IgnoredUrls); }
set { this.Store(x => x.IgnoredUrls, value); }
}
public bool ApplyCulture {
2013-11-01 05:49:44 +08:00
get { return this.Retrieve(x => x.ApplyCulture); }
set { this.Store(x => x.ApplyCulture, value); }
}
public bool DebugMode {
2013-11-01 05:49:44 +08:00
get { return this.Retrieve(x => x.DebugMode); }
set { this.Store(x => x.DebugMode, value); }
}
}
}