Rendering: Don't use element cache level on snapshot cache level properties (#21006)

Don't use element cache level on snapshot cache level propreties
This commit is contained in:
Kenn Jacobsen
2025-12-01 12:52:35 +01:00
committed by GitHub
parent e6b99938db
commit 1c4b4c90c9

View File

@@ -187,10 +187,10 @@ internal sealed class PublishedProperty : PublishedPropertyBase
switch (cacheLevel)
{
case PropertyCacheLevel.None:
case PropertyCacheLevel.Snapshot: // Snapshot is obsolete, so for now treat as None
// never cache anything
cacheValues = new CacheValues();
break;
case PropertyCacheLevel.Snapshot: // Snapshot is obsolete, so for now treat as element
case PropertyCacheLevel.Element:
// cache within the property object itself, ie within the content object
cacheValues = _cacheValues ??= new CacheValues();