Merge pull request #13600 from deivid-rodriguez/profile-enables-dev-caching

The PROFILE env variable should actually enable, not disable, caching
This commit is contained in:
Maikel
2025-10-20 16:03:20 +11:00
committed by GitHub

View File

@@ -33,7 +33,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