|
@@ -6,11 +6,9 @@ namespace CacheControl_test.Controllers
|
6
|
6
|
{
|
7
|
7
|
public class MyCacheOutputAttribute : TimeCacheControlAttribute
|
8
|
8
|
{
|
9
|
|
- public MyCacheOutputAttribute(int seconds, bool excludeGet = false, bool excludePost = false) : base(seconds)
|
|
9
|
+ public MyCacheOutputAttribute(int seconds, bool excludeGet = false, bool excludePost = false) : base(seconds, excludeGet, excludePost)
|
10
|
10
|
{
|
11
|
11
|
CacheType = OutputCacheType.DataBase;
|
12
|
|
- ExcludePostFromCacheKey = excludePost;
|
13
|
|
- ExcludeQueryStringFromCacheKey = excludeGet;
|
14
|
12
|
OutputCacheData = ConfigurationManager.ConnectionStrings["ConnectionString42"].ConnectionString;
|
15
|
13
|
}
|
16
|
14
|
}
|