method

instrument_fragment_cache

rails latest stable - Class: ActionController::Caching::Fragments

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

instrument_fragment_cache(name, key)
public

No documentation available.

# File actionpack/lib/action_controller/caching/fragments.rb, line 92
      def instrument_fragment_cache(name, key) # :nodoc:
        payload = {
          controller: controller_name,
          action: action_name,
          key: key
        }

        ActiveSupport::Notifications.instrument("#{name}.action_controller", payload) { yield }
      end