From 2870ce5e0a75ca3b0bb7479bfcc945cb7271fa47 Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 21 Jun 2019 15:48:10 +1000 Subject: [PATCH] a perf change that in ContentCacheRefresher it doesn't iterate payloads if there is no real Id --- src/Umbraco.Web/Cache/ContentCacheRefresher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Cache/ContentCacheRefresher.cs b/src/Umbraco.Web/Cache/ContentCacheRefresher.cs index e4d2c2e4da..21b97d980d 100644 --- a/src/Umbraco.Web/Cache/ContentCacheRefresher.cs +++ b/src/Umbraco.Web/Cache/ContentCacheRefresher.cs @@ -49,7 +49,7 @@ namespace Umbraco.Web.Cache var idsRemoved = new HashSet(); var isolatedCache = AppCaches.IsolatedCaches.GetOrCreate(); - foreach (var payload in payloads) + foreach (var payload in payloads.Where(x => x.Id != default)) { isolatedCache.Clear(RepositoryCacheKeys.GetKey(payload.Id));