We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67760c6 commit 8babc4bCopy full SHA for 8babc4b
1 file changed
config/environments/production.rb
@@ -33,13 +33,16 @@
33
34
# Use Redis for caching if available, otherwise fall back to memory store
35
config.cache_store = if ENV['REDIS_URL'].present?
36
- :redis_cache_store, {
37
- url: ENV['REDIS_URL'],
38
- reconnect_attempts: 3,
39
- error_handler: ->(method:, returning:, exception:) {
40
- Rails.logger.warn "Rails cache Redis error: #{exception.message}"
+ [
+ :redis_cache_store,
+ {
+ url: ENV['REDIS_URL'],
+ reconnect_attempts: 3,
41
+ error_handler: ->(method:, returning:, exception:) {
42
+ Rails.logger.warn "Rails cache Redis error: #{exception.message}"
43
+ }
44
}
- }
45
+ ]
46
else
47
:memory_store
48
end
0 commit comments