1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Eileen M. Uchitelle 2019-05-13 04:18:45 -04:00 committed by GitHub
commit 5daf3ae587
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.