Skip to content

Commit

Permalink
Merge pull request #36747 from y-yagi/add_mention_about_collection_ca…
Browse files Browse the repository at this point in the history
…che_versioning

Add mention about `active_record.collection_cache_versioning` to the `new_framework_defaults.rb`
  • Loading branch information
y-yagi committed Jul 26, 2019
2 parents 0989956 + 13e43a1 commit 65dcc9d
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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

0 comments on commit 65dcc9d

Please sign in to comment.