From 5b102e3b8efaa6ac1b930940634a7e9fbea7f83d Mon Sep 17 00:00:00 2001 From: Aleksander Date: Thu, 4 Aug 2022 14:29:20 +0200 Subject: [PATCH] Pass cache level to properties when creating published content in nucache (cherry picked from commit d9d2b66e8580bc0cbdd42739a92cf9df16b4e96e) # Conflicts: # src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs (cherry picked from commit 040495f359f8577197c6281dd0afb84b9e7debdc) --- src/Umbraco.PublishedCache.NuCache/PublishedContent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs b/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs index 3544ab35bc..f84df0644d 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs @@ -56,7 +56,7 @@ internal class PublishedContent : PublishedContentBase // add one property per property type - this is required, for the indexing to work // if contentData supplies pdatas, use them, else use null contentData.Properties.TryGetValue(propertyType.Alias, out PropertyData[]? pdatas); // else will be null - properties[i++] = new Property(propertyType, this, pdatas, _publishedSnapshotAccessor); + properties[i++] = new Property(propertyType, this, pdatas, _publishedSnapshotAccessor, propertyType.CacheLevel); } PropertiesArray = properties;