U4-9222 The in memory XML cache is cloned everytime there is a content save even if there is nothing published

This commit is contained in:
Shannon
2016-11-25 18:07:27 +01:00
parent e9b2175506
commit eeb94e1668

View File

@@ -329,6 +329,17 @@ namespace umbraco
if (c.Published)
return;
//if it's a brand new entity, then this shouldn't affect the sort order of the document
if (c.IsNewEntity())
return;
//if the sort order didn't change and the published state didn't change then we don't need to continue
if (c.WasPropertyDirty("SortOrder") == false
&& c.WasPropertyDirty("Published") == false)
{
return;
}
using (var safeXml = GetSafeXmlWriter(false))
{
//TODO: This can be null: safeXml.Xml!!!!