diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-11-08 18:52:31 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-11-08 18:52:31 +0100 |
commit | bab665f8936cd6a5c05e2f31b1a11f820b1d7ed9 (patch) | |
tree | 043af93a7a90a429903987f6d15300090cd6c0ca | |
parent | 398570d21817264b544714cd65bfa6bfe994d38f (diff) | |
download | rails-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.
-rw-r--r-- | guides/source/active_support_instrumentation.md | 12 |
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 { |