U4-5301 - fix AppendDocumentXml + nodes sorting
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Web.Script.Serialization;
|
||||
using umbraco;
|
||||
using Umbraco.Core.Cache;
|
||||
using Umbraco.Core.Models;
|
||||
using System.Linq;
|
||||
@@ -81,6 +82,7 @@ namespace Umbraco.Web.Cache
|
||||
public override void Refresh(int id)
|
||||
{
|
||||
RuntimeCacheProvider.Current.Delete(typeof(IContent), id);
|
||||
content.Instance.UpdateSortOrder(id);
|
||||
base.Refresh(id);
|
||||
}
|
||||
|
||||
@@ -94,6 +96,7 @@ namespace Umbraco.Web.Cache
|
||||
public override void Refresh(IContent instance)
|
||||
{
|
||||
RuntimeCacheProvider.Current.Delete(typeof(IContent), instance.Id);
|
||||
content.Instance.UpdateSortOrder(instance);
|
||||
base.Refresh(instance);
|
||||
}
|
||||
|
||||
@@ -112,6 +115,7 @@ namespace Umbraco.Web.Cache
|
||||
foreach (var payload in DeserializeFromJsonPayload(jsonPayload))
|
||||
{
|
||||
RuntimeCacheProvider.Current.Delete(typeof(IContent), payload.Id);
|
||||
content.Instance.UpdateSortOrder(payload.Id);
|
||||
}
|
||||
|
||||
OnCacheUpdated(Instance, new CacheRefresherEventArgs(jsonPayload, MessageType.RefreshByJson));
|
||||
|
||||
Reference in New Issue
Block a user