Fix for IPropertyCacheCompressionOptions registration
This commit is contained in:
@@ -76,10 +76,10 @@ namespace Umbraco.Extensions
|
||||
if (options.Value.NuCacheSerializerType == NuCacheSerializerType.MessagePack &&
|
||||
options.Value.UnPublishedContentCompression)
|
||||
{
|
||||
return s.GetRequiredService<UnPublishedContentPropertyCacheCompressionOptions>();
|
||||
return new UnPublishedContentPropertyCacheCompressionOptions();
|
||||
}
|
||||
|
||||
return s.GetRequiredService<NoopPropertyCacheCompressionOptions>();
|
||||
return new NoopPropertyCacheCompressionOptions();
|
||||
});
|
||||
|
||||
builder.Services.AddSingleton(s => new ContentDataSerializer(new DictionaryOfPropertyDataSerializer()));
|
||||
|
||||
Reference in New Issue
Block a user