2013-05-25 08:16:57 +08:00
|
|
|
using Orchard.ContentManagement;
|
|
|
|
|
|
|
|
namespace Orchard.OutputCache.Models {
|
2013-11-01 05:49:44 +08:00
|
|
|
public class CacheSettingsPart : ContentPart {
|
2013-05-25 08:16:57 +08:00
|
|
|
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); }
|
2013-05-25 08:16:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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); }
|
2013-05-25 08:16:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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); }
|
2013-05-25 08:16:57 +08:00
|
|
|
}
|
|
|
|
|
2013-08-24 03:49:58 +08:00
|
|
|
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); }
|
2013-08-24 03:49:58 +08:00
|
|
|
}
|
|
|
|
|
2013-05-25 08:16:57 +08:00
|
|
|
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); }
|
2013-05-25 08:16:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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); }
|
2013-05-25 08:16:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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); }
|
2013-05-25 08:16:57 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|