From 631618386b3a16d6ba168a96645006ed61ebccb4 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Thu, 14 Jan 2021 10:39:05 +0000 Subject: [PATCH] Switch to MemCacheStore This fixes an issue where the Dalli store is not supported in Rails 6.1: https://github.com/petergoldstein/dalli/issues/771 --- Gemfile.lock | 2 +- config/environments/production.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c0498db95..c78025923 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -104,7 +104,7 @@ GEM crack (0.4.3) safe_yaml (~> 1.0.0) crass (1.0.6) - dalli (2.7.10) + dalli (2.7.11) debug_inspector (0.0.3) declarative (0.0.20) declarative-option (0.1.0) diff --git a/config/environments/production.rb b/config/environments/production.rb index 5cc4063b9..d35b8bd2d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,7 +46,7 @@ config.log_tags = [:request_id] # use memcached in Production - config.cache_store = :dalli_store, nil, { namespace: :local_links_manager } + config.cache_store = :mem_cache_store, { namespace: :local_links_manager } # Use a real queuing backend for Active Job (and separate queues per environment) # config.active_job.queue_adapter = :resque