mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-06-28 05:56:18 +08:00
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:
commit
500255c3b1
@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user