The PROFILE env variable should actually enable, not disable, caching

I think this may be a typo from 6d8ddd1edac17a431222c86482bceb83e8a7d32f?
This commit is contained in:
David Rodríguez
2025-10-14 08:03:15 +02:00
parent 49d345e608
commit 8787eed863

View File

@@ -31,7 +31,7 @@ Rails.application.configure do
# Enable/disable caching. By default caching is disabled.
# Run rails dev:cache to toggle caching.
if Rails.root.join("tmp/caching-dev.txt").exist? || !ENV["PROFILE"] || !!ENV["DEV_CACHING"]
if Rails.root.join("tmp/caching-dev.txt").exist? || !!ENV["PROFILE"] || !!ENV["DEV_CACHING"]
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true