From 995ed2240113f650fcbb8bb7d2aba6bb12772bc8 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Tue, 19 Feb 2013 14:58:02 -0100 Subject: [PATCH] Comments related to U4-1714 --- src/umbraco.cms/businesslogic/ContentType.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/umbraco.cms/businesslogic/ContentType.cs b/src/umbraco.cms/businesslogic/ContentType.cs index 4a19e3e0fd..f9f3f1d648 100644 --- a/src/umbraco.cms/businesslogic/ContentType.cs +++ b/src/umbraco.cms/businesslogic/ContentType.cs @@ -1146,16 +1146,13 @@ namespace umbraco.cms.businesslogic //Should this include "ct.nodeObjectType == media.MediaType._objectType" ? if (ct.nodeObjectType == DocumentType._objectType) { + //NOTE Changed from "DocumentType.GetAllAsList().FindAll(dt => dt.MasterContentType == id)" to loading master contenttypes directly from the db. + //Related to http://issues.umbraco.org/issue/U4-1714 var dtos = ApplicationContext.Current.DatabaseContext.Database.Fetch("WHERE parentContentTypeId = @Id", new { Id = id }); foreach (var dto in dtos) { FlushFromCache(dto.ChildId); } - - /*List cacheToFlush = DocumentType.GetAllAsList().FindAll(dt => dt.MasterContentType == id); - foreach (DocumentType dt in cacheToFlush) - FlushFromCache(dt.Id);*/ - } }