method

fragment_cache

rails latest stable - Class: ActionController::StructuredEventSubscriber

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

fragment_cache(method_name, event)
private

No documentation available.

# File actionpack/lib/action_controller/structured_event_subscriber.rb, line 96
      def fragment_cache(method_name, event)
        key = ActiveSupport::Cache.expand_cache_key(event.payload[:key] || event.payload[:path])

        emit_event("action_controller.fragment_cache",
          method: "#{method_name}",
          key: key,
          duration_ms: event.duration.round(1)
        )
      end