U4-5301 - fix AppendDocumentXml + nodes sorting

This commit is contained in:
Stephan
2014-09-05 12:16:04 +02:00
parent 549f0555ab
commit 322c3e0664
5 changed files with 281 additions and 117 deletions

View File

@@ -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));