Skip to content

Commit

Permalink
change cache store to redis_cache_store (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeig authored Oct 8, 2024
1 parent 8d1dbba commit 440e1c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ group :production do
gem "aws-sdk-s3", require: false
gem "figaro", "~> 1.2"
gem "fog-aws"
gem "redis", "~> 4.8"
gem "sidekiq", "~> 6.0"
gem "sidekiq-cron"
end
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ DEPENDENCIES
letter_opener_web (~> 1.3)
listen (~> 3.1)
puma (>= 5.0.0)
redis (~> 4.8)
rspec (~> 3.10)
rubocop-faker
sentry-rails
Expand Down
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
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: ENV.fetch("REDIS_URL", "redis://localhost:6379") }

# Use a real queuing backend for Active Job (and separate queues per environment)
# config.active_job.queue_adapter = :resque
Expand All @@ -72,7 +72,7 @@
config.active_support.deprecation = :notify

# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
config.log_formatter = Logger::Formatter.new
config.action_mailer.smtp_settings = {
address: Rails.application.secrets.smtp_address,
port: Rails.application.secrets.smtp_port,
Expand Down

0 comments on commit 440e1c7

Please sign in to comment.