diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-18 21:55:42 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-20 18:34:41 +0100 |
commit | b4700de1ce21599b500d43d8138184ee7ae81407 (patch) | |
tree | a01223eba163fcea56bb65039c9286444fd3bd23 /actionpack | |
parent | c4a46fa781d39f1b4607cb1613a1c67fa044ce54 (diff) | |
download | rails-b4700de1ce21599b500d43d8138184ee7ae81407.tar.gz rails-b4700de1ce21599b500d43d8138184ee7ae81407.tar.bz2 rails-b4700de1ce21599b500d43d8138184ee7ae81407.zip |
Instrument cached collection renders.
Augments the collection caching with some instrumentation that's logged.
For collections that have been cached like:
```ruby
<%= render partial: 'notifications/notification', collection: @notifications, cached: true %>
```
We'll output a line showing how many cache hits we had when rendering it:
```
Rendered collection of notifications/_notification.html.erb [0 / 100 cache hits] (3396.5ms)
```
Diffstat (limited to 'actionpack')
0 files changed, 0 insertions, 0 deletions