aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-07-24 19:50:21 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-07-24 20:00:25 +0900
commit13e43a10bdc81cbc50c28ba6415845c7e4650c17 (patch)
tree4f5abc2c0187ec1cce7e0e6414b0b6d3688030fe /railties
parent400b2103540e1dfb370eab29a891687d778ad357 (diff)
downloadrails-13e43a10bdc81cbc50c28ba6415845c7e4650c17.tar.gz
rails-13e43a10bdc81cbc50c28ba6415845c7e4650c17.tar.bz2
rails-13e43a10bdc81cbc50c28ba6415845c7e4650c17.zip
Add mention about `active_record.collection_cache_versioning` to the `new_framework_defaults.rb`
All other recommended new configurations that set in `load_defaults` are already mentioned in `new_framework_defaults.rb`. So `active_record.collection_cache_versioning` should also be mentioned.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt
index ffe53497bf..2510ab906f 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt
@@ -38,3 +38,8 @@
# MailDeliveryJob to ensure all delivery jobs are processed properly.
# Make sure your entire app is migrated and stable on 6.0 before using this setting.
# Rails.application.config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob"
+
+# Enable the same cache key to be reused when the object being cached of type
+# `ActiveRecord::Relation` changes by moving the volatile information (max updated at and count)
+# of the relation's cache key into the cache version to support recycling cache key.
+# Rails.application.config.active_record.collection_cache_versioning = true