Skip to content

Commit 7f53448

Browse files
committed
Use redis cache store for prod
1 parent de8bc73 commit 7f53448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/environments/production.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
config.log_tags = [ :request_id ]
5757

5858
# Use a different cache store in production.
59-
# config.cache_store = :mem_cache_store
59+
config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'] } if ENV['REDIS_URL'].present?
60+
config.cache_store = :redis_cache_store, { url: ENV['REDISCLOUD_URL'] } if ENV['REDISCLOUD_URL'].present?
6061

6162
# Use a real queuing backend for Active Job (and separate queues per environment).
6263
# config.active_job.queue_adapter = :resque

0 commit comments

Comments
 (0)