From a2279d03f69922e53216888db57448b5de305d9a Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Thu, 21 Feb 2019 16:13:21 +0100 Subject: [PATCH] Materializing the TypeContentSources before iterating them. --- .../PublishedCache/NuCache/PublishedSnapshotService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs b/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs index a85e75f14c..c9709ddd5f 100755 --- a/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs @@ -947,7 +947,7 @@ namespace Umbraco.Web.PublishedCache.NuCache { scope.ReadLock(Constants.Locks.ContentTypes); var typesA = CreateContentTypes(PublishedItemType.Content, refreshedIdsA).ToArray(); - var kits = _dataSource.GetTypeContentSources(scope, refreshedIdsA); + var kits = _dataSource.GetTypeContentSources(scope, refreshedIdsA).ToArray(); _contentStore.UpdateContentTypes(removedIds, typesA, kits); _contentStore.UpdateContentTypes(CreateContentTypes(PublishedItemType.Content, otherIds.ToArray()).ToArray()); _contentStore.NewContentTypes(CreateContentTypes(PublishedItemType.Content, newIds.ToArray()).ToArray());