Merge pull request #6028 from mvarblow/patch-3

Update CacheItemRecord.cs

Fixed database output cache module when using SQL Server database. This resolves the following exception which results from NHibernate trying to truncate the Output field to 8K: NHibernate.AssertionFailure: null id in Orchard.OutputCache.Models.CacheItemRecord entry (don't flush the Session after an exception occurs)
This commit is contained in:
Daniel Stolt 2015-11-11 18:36:18 +01:00
commit 500255c3b1

View File

@ -12,7 +12,7 @@ namespace Orchard.OutputCache.Models {
public virtual int GraceTime { get; set; }
public virtual DateTime ValidUntilUtc { get; set; }
public virtual DateTime StoredUntilUtc { get; set; }
public virtual byte[] Output { get; set; }
[StringLengthMax] public virtual byte[] Output { get; set; }
public virtual string ContentType { get; set; }
[StringLength(2048)] public virtual string QueryString { get; set; }
[StringLength(2048)] public virtual string CacheKey { get; set; }
@ -22,4 +22,4 @@ namespace Orchard.OutputCache.Models {
public virtual int StatusCode { get; set; }
[StringLengthMax] public virtual string Tags { get; set; }
}
}
}