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:
mvarblow
2015-11-11 12:19:59 -05:00
parent 06ee7849c1
commit 67096961ce

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; }
}
}
}