diff options
author | st0012 <stan001212@gmail.com> | 2019-04-24 01:28:45 +0800 |
---|---|---|
committer | st0012 <stan001212@gmail.com> | 2019-04-24 01:28:45 +0800 |
commit | c30344eb6e102ef916eef7857d51a8bf6423bd62 (patch) | |
tree | f59b5843f8b56467a4a4f487f6f94134a4b2d23b /guides | |
parent | 6a4eb3e75eabfe6c00ea60b845b487f70a350222 (diff) | |
download | rails-c30344eb6e102ef916eef7857d51a8bf6423bd62.tar.gz rails-c30344eb6e102ef916eef7857d51a8bf6423bd62.tar.bz2 rails-c30344eb6e102ef916eef7857d51a8bf6423bd62.zip |
Update document about perform_caching's default value
Clarify that both `config.action_controller.perform_caching` and
`config.action_mailer.perform_caching`'s default are `true`. This
default is set in `AbstractController::Caching`.
One can verify this by commenting out all
```
@controller.perform_caching = true
```
in `actionpack/test/controller/caching_test.rb` and run the tests. They
should still pass.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index e1c9fad232..ca08821aa7 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -409,7 +409,7 @@ The schema dumper adds two additional configuration options: * `config.action_controller.asset_host` sets the host for the assets. Useful when CDNs are used for hosting assets rather than the application server itself. -* `config.action_controller.perform_caching` configures whether the application should perform the caching features provided by the Action Controller component or not. Set to `false` in development mode, `true` in production. +* `config.action_controller.perform_caching` configures whether the application should perform the caching features provided by the Action Controller component or not. Set to `false` in development mode, `true` in production. If it's not specified, the default will be `true`. * `config.action_controller.default_static_extension` configures the extension used for cached pages. Defaults to `.html`. @@ -696,7 +696,7 @@ There are a number of settings available on `config.action_mailer`: * `config.action_mailer.deliver_later_queue_name` specifies the queue name for mailers. By default this is `mailers`. -* `config.action_mailer.perform_caching` specifies whether the mailer templates should perform fragment caching or not. By default this is `false` in all environments. +* `config.action_mailer.perform_caching` specifies whether the mailer templates should perform fragment caching or not. If it's not specified, the default will be `true`. * `config.action_mailer.delivery_job` specifies delivery job for mail. Defaults to `ActionMailer::DeliveryJob`. |