From b0de512d9c70d38c1d09df6cf2b03471ecc523c7 Mon Sep 17 00:00:00 2001 From: takahashim Date: Mon, 28 Oct 2024 20:03:32 +0900 Subject: [PATCH] use cache_store for session --- config/environments/development.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 3cbfd12b7..765209d1a 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -19,8 +19,9 @@ if Rails.root.join("tmp/caching-dev.txt").exist? config.action_controller.perform_caching = true - if ENV["REDIS_CACHE_URL"] # rubocop:disable Style/ConditionalAssignment + if ENV["REDIS_CACHE_URL"] config.cache_store = :redis_cache_store, { url: ENV.fetch("REDIS_CACHE_URL", nil) } + config.session_store(:cache_store, key: "decidim_session") else config.cache_store = :memory_store end