uses const as config key

This commit is contained in:
Shannon
2021-04-23 15:40:36 +10:00
parent e418bc56c6
commit e434f77f2f
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
{
base.Compose(composition);
var serializer = ConfigurationManager.AppSettings["Umbraco.Web.PublishedCache.NuCache.Serializer"];
var serializer = ConfigurationManager.AppSettings[NuCacheSerializerComponent.Nucache_Serializer_Key];
if (serializer != "MsgPack")
{
// TODO: This allows people to revert to the legacy serializer, by default it will be MessagePack