Fix for IPropertyCacheCompressionOptions registration

This commit is contained in:
Bjarke Berg
2021-08-03 10:01:13 +02:00
parent e84fcd31a1
commit 06951d2e2e

View File

@@ -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()));