2015-12-14 05:21:02 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using Orchard.OutputCache.Models;
|
|
|
|
|
|
|
|
|
|
namespace Orchard.OutputCache.ViewModels {
|
|
|
|
|
public class IndexViewModel {
|
|
|
|
|
public List<CacheRouteConfig> RouteConfigs { get; set; }
|
|
|
|
|
[Range(0, Int32.MaxValue), Required] public int DefaultCacheDuration { get; set; }
|
|
|
|
|
[Range(0, Int32.MaxValue), Required] public int DefaultCacheGraceTime { get; set; }
|
|
|
|
|
[Range(0, Int32.MaxValue), Required] public int DefaultMaxAge { get; set; }
|
2017-01-14 00:02:25 +08:00
|
|
|
|
public bool VaryByQueryStringIsExclusive { get; set; }
|
2015-12-14 05:21:02 +08:00
|
|
|
|
public string VaryByQueryStringParameters { get; set; }
|
|
|
|
|
public string VaryByRequestHeaders { get; set; }
|
2016-10-21 03:24:47 +08:00
|
|
|
|
public string VaryByRequestCookies { get; set; }
|
2015-12-14 05:21:02 +08:00
|
|
|
|
public string IgnoredUrls { get; set; }
|
|
|
|
|
public bool IgnoreNoCache { get; set; }
|
|
|
|
|
public bool VaryByCulture { get; set; }
|
|
|
|
|
public bool CacheAuthenticatedRequests { get; set; }
|
|
|
|
|
public bool VaryByAuthenticationState { get; set; }
|
|
|
|
|
public bool DebugMode { get; set; }
|
|
|
|
|
}
|
2013-05-25 08:16:57 +08:00
|
|
|
|
}
|