diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-08-07 19:15:11 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-08-07 19:15:11 +0200 |
commit | 801c6f9e04033b68dd9f268a94e4317f7dde8b65 (patch) | |
tree | 2832f5007eb9ccabcc15c8a58d9fdcfd1f55527b /actionpack | |
parent | 2dc0918718c49e9e59bef47025f9bb465e44ddb7 (diff) | |
download | rails-801c6f9e04033b68dd9f268a94e4317f7dde8b65.tar.gz rails-801c6f9e04033b68dd9f268a94e4317f7dde8b65.tar.bz2 rails-801c6f9e04033b68dd9f268a94e4317f7dde8b65.zip |
Add changelog entry to Action Pack as well.
The entry was a result of a combination of changes in Action View
and Action Controller.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index ca55a063e7..5724e24bd5 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,27 @@ +* Show cache hits and misses when rendering partials. + + Partials using the `cache` helper will show whether a render hit or missed + the cache: + + ``` + Rendered messages/_message.html.erb in 1.2 ms [cache hit] + Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss] + ``` + + This removes the need for the old fragment cache logging: + + ``` + Read fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/d0bdf2974e1ef6d31685c3b392ad0b74 (0.6ms) + Rendered messages/_message.html.erb in 1.2 ms [cache hit] + Write fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/3b4e249ac9d168c617e32e84b99218b5 (1.1ms) + Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss] + ``` + + Though that full output can be reenabled with + `config.action_controller.enable_fragment_cache_logging = true`. + + *Stan Lo* + * Don't override the `Accept` header in integration tests when called with `xhr: true`. Fixes #25859. |