From 1fe1b226e81654e3d1da2fe470eb7a032d24837a Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Fri, 12 Jan 2024 22:29:02 -0800 Subject: [PATCH] More detailed cache_logging --- config/environments/production.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index c13a48b802..81d7806762 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -61,6 +61,9 @@ # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false config.action_controller.perform_caching = true + # debugging: check if cache is being hit + # (it should show [cache hit] even if set to false) + config.action_controller.enable_fragment_cache_logging = true # Enable Rack::Cache to put a simple HTTP cache in front of your application # Add `rack-cache` to your Gemfile before enabling this.