Skip to content

Commit

Permalink
use cache_store for session
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Oct 28, 2024
1 parent 5db0489 commit b0de512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0de512

Please sign in to comment.