aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-11-08 18:52:31 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-11-08 18:52:31 +0100
commitbab665f8936cd6a5c05e2f31b1a11f820b1d7ed9 (patch)
tree043af93a7a90a429903987f6d15300090cd6c0ca /guides
parent398570d21817264b544714cd65bfa6bfe994d38f (diff)
downloadrails-bab665f8936cd6a5c05e2f31b1a11f820b1d7ed9.tar.gz
rails-bab665f8936cd6a5c05e2f31b1a11f820b1d7ed9.tar.bz2
rails-bab665f8936cd6a5c05e2f31b1a11f820b1d7ed9.zip
[ci skip] Expand context on `:cache_hits`.
Need to explain the key is only there in certain cases.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_support_instrumentation.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md
index 2be3a1c4e2..03c9183eb3 100644
--- a/guides/source/active_support_instrumentation.md
+++ b/guides/source/active_support_instrumentation.md
@@ -228,11 +228,13 @@ Action View
### render_collection.action_view
-| Key | Value |
-| ------------- | ----------------------------------- |
-| `:identifier` | Full path to template |
-| `:count` | Size of collection |
-| `:cache_hits` | Count of cached partials (optional) |
+| Key | Value |
+| ------------- | ------------------------------------- |
+| `:identifier` | Full path to template |
+| `:count` | Size of collection |
+| `:cache_hits` | Number of partials fetched from cache |
+
+`:cache_hits` is only included if the collection is rendered with `cached: true`.
```ruby
{