This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ManagedPoolThread #13 07:22:05 ERROR CommerceRedisCacheStore: Error with connection to redis trying to clear all cache keys: StackExchange.Redis.RedisCommandException: This operation is not available unless admin mode is enabled: FLUSHDB | |
at StackExchange.Redis.ConnectionMultiplexer.CheckMessage(Message message) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 527 | |
at StackExchange.Redis.RedisServer.ExecuteSync[T](Message message, ResultProcessor`1 processor, ServerEndPoint server) in /_/src/StackExchange.Redis/RedisServer.cs:line 602 | |
at Sitecore.Commerce.Engine.Connect.CommerceRedisCacheStore.ClearAllKeys() |
Based on the exception, we found that we can add AllowAdmin option to the Sitecore Commerce Redis Connection string. All Commerce related settings are available in this folder - \App_Config\Include\Y.Commerce.Engine.
In Sitecore.Commerce.Engine.Connect.config, allowAdmin=true configuration is added to the Redis Connection string. Refreshing the commerce cache worked without an error.
No comments:
Post a Comment