Skip to content

Commit bc1d7ef

Browse files
committed
fix: move Redis cache_store config inside Rails.application.configure block
1 parent ac41ef2 commit bc1d7ef

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

config/environments/production.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
#
6262
# Skip DNS rebinding protection for the default health check endpoint.
6363
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
64-
end
6564

66-
# Redis cache for production
67-
config.cache_store = :redis_cache_store, {
68-
url: ENV.fetch("REDIS_URL", "redis://localhost:6379/2"),
69-
expires_in: 30.minutes,
70-
namespace: "kl"
71-
}
65+
# Redis cache for production
66+
config.cache_store = :redis_cache_store, {
67+
url: ENV.fetch("REDIS_URL", "redis://localhost:6379/2"),
68+
expires_in: 30.minutes,
69+
namespace: "kl"
70+
}
71+
end

0 commit comments

Comments
 (0)