Rendering: Don't cache RTE value conversion (closes #20867) (#20880)

Don't cache RTE rendering.
This commit is contained in:
Kenn Jacobsen
2025-11-18 15:36:18 +01:00
committed by GitHub
parent 57c66faf40
commit 95c9d48b6e

View File

@@ -72,8 +72,8 @@ public class RteBlockRenderingValueConverter : SimpleRichTextValueConverter, IDe
public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) =>
// because that version of RTE converter parses {locallink} and renders blocks, its value has
// to be cached at the published snapshot level, because we have no idea what the block renderings may depend on actually.
PropertyCacheLevel.Snapshot;
// to be re-rendered at request time, because we have no idea what the block renderings may depend on actually.
PropertyCacheLevel.None;
/// <inheritdoc />
public override bool? IsValue(object? value, PropertyValueLevel level)
@@ -118,7 +118,7 @@ public class RteBlockRenderingValueConverter : SimpleRichTextValueConverter, IDe
public PropertyCacheLevel GetDeliveryApiPropertyCacheLevel(IPublishedPropertyType propertyType) => PropertyCacheLevel.Elements;
public PropertyCacheLevel GetDeliveryApiPropertyCacheLevelForExpansion(IPublishedPropertyType propertyType) => PropertyCacheLevel.Snapshot;
public PropertyCacheLevel GetDeliveryApiPropertyCacheLevelForExpansion(IPublishedPropertyType propertyType) => PropertyCacheLevel.None;
public Type GetDeliveryApiPropertyValueType(IPublishedPropertyType propertyType)
=> _deliveryApiSettings.RichTextOutputAsJson