Don't cache RTE rendering.
This commit is contained in:
@@ -72,8 +72,8 @@ public class RteBlockRenderingValueConverter : SimpleRichTextValueConverter, IDe
|
|||||||
public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) =>
|
public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) =>
|
||||||
|
|
||||||
// because that version of RTE converter parses {locallink} and renders blocks, its value has
|
// 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.
|
// to be re-rendered at request time, because we have no idea what the block renderings may depend on actually.
|
||||||
PropertyCacheLevel.Snapshot;
|
PropertyCacheLevel.None;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override bool? IsValue(object? value, PropertyValueLevel level)
|
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 GetDeliveryApiPropertyCacheLevel(IPublishedPropertyType propertyType) => PropertyCacheLevel.Elements;
|
||||||
|
|
||||||
public PropertyCacheLevel GetDeliveryApiPropertyCacheLevelForExpansion(IPublishedPropertyType propertyType) => PropertyCacheLevel.Snapshot;
|
public PropertyCacheLevel GetDeliveryApiPropertyCacheLevelForExpansion(IPublishedPropertyType propertyType) => PropertyCacheLevel.None;
|
||||||
|
|
||||||
public Type GetDeliveryApiPropertyValueType(IPublishedPropertyType propertyType)
|
public Type GetDeliveryApiPropertyValueType(IPublishedPropertyType propertyType)
|
||||||
=> _deliveryApiSettings.RichTextOutputAsJson
|
=> _deliveryApiSettings.RichTextOutputAsJson
|
||||||
|
|||||||
Reference in New Issue
Block a user