We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b1de6 commit 5513e8fCopy full SHA for 5513e8f
1 file changed
config/application.rb
@@ -28,15 +28,15 @@ class Application < Rails::Application
28
config.i18n.default_locale = :nl
29
config.i18n.fallbacks = [:nl]
30
31
- if ENV['REDIS_HOST'].present?
32
- cable_url = config_for(:cable)['url']
33
- config.cache_store :redis_cache_store, {
34
- url: cable_url,
35
- pool: { size: ENV.fetch('RAILS_MAX_THREADS', 5).to_i, timeout: 5 }
36
- }
37
- else
38
- config.cache_store :memory_store
39
- end
+ config.cache_store = if ENV['REDIS_HOST'].present?
+ cable_url = config_for(:cable)['url']
+ [:redis_cache_store, {
+ url: cable_url,
+ pool: { size: ENV.fetch('RAILS_MAX_THREADS', 5).to_i, timeout: 5 }
+ }]
+ else
+ :memory_store
+ end
40
41
config.active_job.queue_adapter = :sidekiq
42
0 commit comments