{# # This file is part of php-cache\cache-bundle package. # # (c) 2015-2015 Aaron Scherer # # This source file is subject to the MIT license that is bundled # with this source code in the file LICENSE. #} {% extends 'WebProfilerBundle:Profiler:layout.html.twig' %} {% block head %} {{ parent() }} {% endblock head %} {% block toolbar %} {% if collector.totals.calls > 0 %} {% set icon %} {{ include('@Cache/Icon/logo.svg') }} {{ collector.totals.calls }} in {{ '%0.2f'|format(collector.totals.time * 1000) }} ms {% endset %} {% set text %}
Cache Calls {{ collector.totals.calls }}
Total time {{ '%0.2f'|format(collector.totals.time * 1000) }} ms
Cache hits {{ collector.totals.hits }}/{{ collector.totals.reads }} ({{ collector.totals.ratio }})
Cache writes {{ collector.totals.writes }}
{% endset %} {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %} {% endif %} {% endblock %} {% block menu %} {{ include('@Cache/Icon/logo.svg') }} Cache {{ collector.totals.calls }} {{ '%0.0f'|format(collector.totals.time * 1000) }} ms {% endblock %} {% block panel %}

Cache

{% for name, calls in collector.calls %}

Statistics for '{{ name }}'

{% for key, value in collector.statistics[name] %} {% endfor %} {% for key, value in collector.statistics[name] %} {% if key == 'time' %} {% else %} {% endif %} {% endfor %}
{{ key|capitalize }}
{{ '%0.2f'|format(value * 1000) }} ms{{ value }}

Calls for '{{ name }}'

{% if not collector.totals.calls %}

No calls.

{% else %} {% endif %} {% endfor %} {% endblock %}