{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set text %}
Cache hits {{ collector.summary.hits }}
Cache misses {{ collector.summary.misses }}
{% endset %} {% set icon %} Cache {{ '%0.2f'|format(collector.summary.hitRatio * 100) }} % in {{ collector.totalTime }} ms {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url } %} {% endblock %} {% block menu %} Cache {{ collector.summary.hits }} / {{ collector.summary.calls }} {{ '%0.0f'|format(collector.totalTime) }} ms {% endblock %} {% block panel %}

Cache: {{ collector.summary.cacheType }}

{% if collector.summary.namespace %}

Namespace: {{ collector.summary.namespace }}

{% endif %}

Server statistics

{% set initialCallCount = collector.initialProfile.misses + collector.initialProfile.hits %} {% set finalCallCount = collector.currentProfile.misses + collector.currentProfile.hits %}
Server stat Initial value Final value Delta
Hits {{ collector.initialProfile.hits }} {{ collector.currentProfile.hits }} {{ collector.currentProfile.hits - collector.initialProfile.hits }}
Misses {{ collector.initialProfile.misses }} {{ collector.currentProfile.misses }} {{ collector.currentProfile.misses - collector.initialProfile.misses }}
Calls{{ initialCallCount }} {{ finalCallCount}} {{ finalCallCount - initialCallCount }}
Uptime {{ collector.initialProfile.uptime }} {{ collector.currentProfile.uptime }} {{ collector.summary.uptimeDelta }}
Memory usage {{ collector.initialProfile.memUsage }} {{ collector.currentProfile.memUsage }} {{ collector.summary.memUsageDelta }}
Memory available {{ collector.initialProfile.memAvailable }} {{ collector.currentProfile.memAvailable }} {{ collector.summary.memAvailableDelta }}

HIT/MISS summary

Call stat Value
Hits {{ collector.callSummary['hits'] }}
Misses {{ collector.callSummary['misses'] }}
Total {{ collector.callSummary['calls'] }}

Calls by type summary

{% for callType, count in collector.callSummary['calls_by_type'] %} {% endfor %}
Operation Count
{{ callType }} {{ count }}

Calls by key summary

{% for callKey, stats in collector.callSummary['calls_by_key'] %} {% endfor %}
Key Hits Misses Reads Writes Total
{{ callKey }} {{ stats['hits'] }} {{ stats['misses'] }} {{ stats['reads'] }} {{ stats['writes'] }} {{ stats['total'] }}

Call list

{% set callCount = 1 %} {% for call in collector.calls %} {% set callCount = callCount + call['count'] %} {% endfor %}
# Call type Key Hit / Miss Count
{{ callCount }} {% if call['type'] != 'fetch' %} {{ call['type'] }} {% else %} {{ call['type'] }} {% endif %} {{ call['key'] }} {% if call['hit'] %}HIT{% else %}MISS{% endif %} {{ call['count'] }}
{% endblock %}