Skip to content

Commit

Permalink
Use redis as cache_store in production
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-l-brockwell authored and sammo1235 committed Jan 23, 2025
1 parent 57fb439 commit 284c6da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require Rails.root.join("lib/formatters/asim_formatter")
require Rails.root.join("lib/credentials_resolver")

Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
Expand Down Expand Up @@ -66,8 +67,7 @@
# Prepend all log lines with the following tags.
config.log_tags = [:request_id]

# Use a different cache store in production.
# config.cache_store = :mem_cache_store
config.cache_store = :redis_cache_store, { url: CredentialsResolver.redis_uri }

config.action_mailer.perform_caching = false

Expand Down

0 comments on commit 284c6da

Please sign in to comment.