U4-9587 RebuildXmlStructures doesn't clear out stale data so there is unpublished or trashed items remaining in the xml table, xml data integrity check is misleading due to the media lookup

This commit is contained in:
Shannon
2017-03-02 17:28:34 +01:00
parent 65a22417f7
commit 96c28c2611
8 changed files with 147 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ namespace Umbraco.Web.WebServices
[HttpGet]
public bool CheckMediaXmlTable()
{
var total = Services.MediaService.Count();
var total = Services.MediaService.CountNotTrashed();
var mediaObjectType = Guid.Parse(Constants.ObjectTypes.Media);
var subQuery = new Sql()
.Select("Count(*)")