Merge pull request #24582 from vipulnsward/stop-passing-unused-payloads-to-instrumentation
Stop passing unused payloads to instrumentation block in cache
This commit is contained in:
commit
2c8e0bba4b
@ -575,12 +575,12 @@ def handle_expired_entry(entry, key, options)
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user