V8: Fix caching of macro results in RTE (#6010)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
320cc48132
commit
9b212121e3
@@ -11,6 +11,7 @@ using Umbraco.Core.Cache;
|
||||
using Umbraco.Core.Services;
|
||||
using Umbraco.Web.Composing;
|
||||
using Umbraco.Web.Macros;
|
||||
using System.Web;
|
||||
|
||||
namespace Umbraco.Web.PropertyEditors.ValueConverters
|
||||
{
|
||||
@@ -63,7 +64,14 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
|
||||
}
|
||||
}
|
||||
|
||||
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
|
||||
public override object ConvertIntermediateToObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
|
||||
{
|
||||
var converted = Convert(inter, preview);
|
||||
|
||||
return new HtmlString(converted == null ? string.Empty : converted);
|
||||
}
|
||||
|
||||
private string Convert(object source, bool preview)
|
||||
{
|
||||
if (source == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user