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:
commit
5daf3ae587
1 changed files with 6 additions and 0 deletions
|
@ -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`.
|
||||
|
|
Loading…
Reference in a new issue