diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-17 11:30:38 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-17 11:30:38 -0700 |
commit | 2c8e0bba4b5122aec03299c1f3726be8343ca3c0 (patch) | |
tree | 153521a66d367065591d644e456208d13b4cc051 /activesupport | |
parent | 7365c976a011c6806906cefc70bd4a2c027d0175 (diff) | |
parent | 58fc343eaad9275add7761f8464b8811fbe730f7 (diff) | |
download | rails-2c8e0bba4b5122aec03299c1f3726be8343ca3c0.tar.gz rails-2c8e0bba4b5122aec03299c1f3726be8343ca3c0.tar.bz2 rails-2c8e0bba4b5122aec03299c1f3726be8343ca3c0.zip |
Merge pull request #24582 from vipulnsward/stop-passing-unused-payloads-to-instrumentation
Stop passing unused payloads to instrumentation block in cache
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 1c63e8a93f..85f462a1b1 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -575,12 +575,12 @@ module ActiveSupport end def get_entry_value(entry, name, options) - instrument(:fetch_hit, name, options) { |payload| } + instrument(:fetch_hit, name, options) { } entry.value end def save_block_result_to_cache(name, options) - result = instrument(:generate, name, options) do |payload| + result = instrument(:generate, name, options) do yield(name) end |