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 040495f359)
This commit is contained in:
Aleksander
2022-08-04 14:29:20 +02:00
committed by Bjarke Berg
parent ec25c3a61d
commit 5b102e3b8e

View File

@@ -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;