* Add custom serializer * Add migration to rebuild cache * Rename migration namespace to 15.1 * Also clear media cache * Remove failed cache items * Refactor to only use keys for document cache repository --------- Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
25 lines
622 B
C#
25 lines
622 B
C#
using System.ComponentModel;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.HybridCache;
|
|
|
|
// This is for cache performance reasons, see https://learn.microsoft.com/en-us/aspnet/core/performance/caching/hybrid?view=aspnetcore-9.0#reuse-objects
|
|
[ImmutableObject(true)]
|
|
public sealed class ContentCacheNode
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public Guid Key { get; set; }
|
|
|
|
public int SortOrder { get; set; }
|
|
|
|
public DateTime CreateDate { get; set; }
|
|
|
|
public int CreatorId { get; set; }
|
|
|
|
public int ContentTypeId { get; set; }
|
|
|
|
public bool IsDraft { get; set; }
|
|
|
|
public ContentData? Data { get; set; }
|
|
}
|