diff --git a/config/environments/development.rb b/config/environments/development.rb index db328cd..2d4de64 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -23,7 +23,8 @@ config.action_controller.perform_caching = true config.action_controller.enable_fragment_cache_logging = true - config.cache_store = :memory_store + # config.cache_store = :memory_store + config.cache_store = :redis_cache_store, {URL: ENV.fetch("REDIS_URL", "redis://localhost:6397/1")} config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" } diff --git a/config/environments/production.rb b/config/environments/production.rb index 0224c16..aeb28f1 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -54,6 +54,7 @@ # 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:6397/1")} # Use a real queuing backend for Active Job (and separate queues per environment). # config.active_job.queue_adapter = :resque