From 440e1c73d6a2f1244c5f2d133aad23dc67372842 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 8 Oct 2024 16:55:04 +0200 Subject: [PATCH] change cache store to redis_cache_store (#112) --- Gemfile | 1 + Gemfile.lock | 1 + config/environments/production.rb | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 7bc2890..cd07226 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index 707fbc6..e7e7d65 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/config/environments/production.rb b/config/environments/production.rb index a087e19..0d41d66 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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 @@ -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,