module ActionView::Helpers::CacheHelper
def fragment_for(name = {}, options = nil, &block)
def fragment_for(name = {}, options = nil, &block) if content = read_fragment_for(name, options) @view_renderer.cache_hits[@current_template&.virtual_path] = :hit if defined?(@view_renderer) content else @view_renderer.cache_hits[@current_template&.virtual_path] = :miss if defined?(@view_renderer) write_fragment_for(name, options, &block) end end