aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2019-05-13 04:18:45 -0400
committerGitHub <noreply@github.com>2019-05-13 04:18:45 -0400
commit5daf3ae587dce9c7ec9397b4387f692b54535d27 (patch)
tree14c4947d0edb3410ff7411115fd7a2377b89c56f /guides
parent1dcafa43b3504bbe08305ddb6ee43d60219db408 (diff)
parent03f19c5edcacedd0ef96868771ad1b37d9cb143c (diff)
downloadrails-5daf3ae587dce9c7ec9397b4387f692b54535d27.tar.gz
rails-5daf3ae587dce9c7ec9397b4387f692b54535d27.tar.bz2
rails-5daf3ae587dce9c7ec9397b4387f692b54535d27.zip
Merge pull request #36260 from vishaltelangre/active_record-collection_cache_versioning-config-info
[skip ci] Add missing info about 'active_record.collection_cache_versioning' configuration
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index d3cecfd384..e14da01538 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -383,6 +383,12 @@ All these configuration options are delegated to the `I18n` library.
having to send a query to the database to get this information.
Defaults to `true`.
+* `config.active_record.collection_cache_versioning` enables 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.
+ Defaults to `true`.
+
The MySQL adapter adds one additional configuration option:
* `ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans` controls whether Active Record will consider all `tinyint(1)` columns as booleans. Defaults to `true`.