aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVishal Telangre <the@vishaltelangre.com>2019-05-12 12:42:40 +0530
committerVishal Telangre <the@vishaltelangre.com>2019-05-12 12:46:03 +0530
commit03f19c5edcacedd0ef96868771ad1b37d9cb143c (patch)
tree6fa4b1b8051e49f90a049d5bd894b10d825af342 /guides
parentb1c917ee2fdaa452aeb52904db0d254d85285380 (diff)
downloadrails-03f19c5edcacedd0ef96868771ad1b37d9cb143c.tar.gz
rails-03f19c5edcacedd0ef96868771ad1b37d9cb143c.tar.bz2
rails-03f19c5edcacedd0ef96868771ad1b37d9cb143c.zip
[skip ci] Add missing info about 'active_record.collection_cache_versioning' configuration
References: - https://github.com/rails/rails/commit/4f2ac80d4cdb01c4d3c1765637bed76cc91c1e35 - https://github.com/rails/rails/blob/b1c917ee2fdaa452aeb52904db0d254d85285380/railties/lib/rails/application/configuration.rb#L147-L149
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`.