Simplicity
This commit is contained in:
@@ -103,10 +103,10 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
// args are: current published snapshot (may be null), previewing, content id - returns: content
|
||||
|
||||
internal static Func<IPublishedShapshot, bool, int, IPublishedContent> GetContentByIdFunc { get; set; }
|
||||
= (publishedShapshot, previewing, id) => publishedShapshot.ContentCache.GetById(previewing, id);
|
||||
= (publishedShapshot, previewing, id) => publishedShapshot.Content.GetById(previewing, id);
|
||||
|
||||
internal static Func<IPublishedShapshot, bool, int, IPublishedContent> GetMediaByIdFunc { get; set; }
|
||||
= (publishedShapshot, previewing, id) => publishedShapshot.MediaCache.GetById(previewing, id);
|
||||
= (publishedShapshot, previewing, id) => publishedShapshot.Media.GetById(previewing, id);
|
||||
|
||||
private IPublishedContent GetContentById(bool previewing, int id)
|
||||
{
|
||||
|
||||
@@ -57,13 +57,13 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
|
||||
#region IPublishedSnapshot
|
||||
|
||||
public IPublishedContentCache ContentCache => Elements.ContentCache;
|
||||
public IPublishedContentCache Content => Elements.ContentCache;
|
||||
|
||||
public IPublishedMediaCache MediaCache => Elements.MediaCache;
|
||||
public IPublishedMediaCache Media => Elements.MediaCache;
|
||||
|
||||
public IPublishedMemberCache MemberCache => Elements.MemberCache;
|
||||
public IPublishedMemberCache Members => Elements.MemberCache;
|
||||
|
||||
public IDomainCache DomainCache => Elements.DomainCache;
|
||||
public IDomainCache Domains => Elements.DomainCache;
|
||||
|
||||
public IDisposable ForcedPreview(bool preview, Action<bool> callback = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user