{# * This file is part of phpFastCache. * * @license MIT License (MIT) * * For full copyright and license information, please see the docs/CREDITS.txt file. * * @author Georges.L (Geolim4) * @author PastisD https://github.com/PastisD * @author Khoa Bui (khoaofgod) http://www.phpfastcache.com #} {% extends 'WebProfilerBundle:Profiler:layout.html.twig' %} {% block toolbar %} {% set icon %} {{ include('@phpFastCache/data_collector/icon.svg') }} {{ collector.size|sizeFormat(1) }} {% endset %} {% set text %}
API version {{ collector.ApiVersion }}
Read hits {{ collector.hits.read }}
Write hits {{ collector.hits.write }}
Cache instances {{ collector.stats|length }}
Cache size {{ collector.size|sizeFormat(1) }}
Cache Driver {% if collector.driverUsed|length == 0 %} None {% elseif collector.driverUsed|length == 1 %} {{ collector.driverUsed|keys|first }} {% else %} Multiple ({{ collector.driverUsed|length }}) {% endif %}
Twig Cache Blocks {{ collector.twigCacheBlocks|length }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig') }} {% endblock %} {% block menu %} {{ include('@phpFastCache/data_collector/icon.svg') }} PhpFastCache {% if collector.stats|length > 0 %} {{ collector.stats|length }} {% endif %} {% endblock %} {% block panel %}

PhpFastCache Metrics

{{ collector.size|sizeFormat(1) }} Total Size
{{ collector.stats|length }} Cache Instances
{{ collector.twigCacheBlocks|length }} Twig Cache Blocks
{{ collector.driverUsed|length }} Drivers used
{{ collector.hits.read }} Read hits
{{ collector.hits.write }} Write hits
{{ collector.apiVersion }} API Version
{{ collector.bundleVersion }} PFC Bundle Version

PhpFastCache Cache Instance ({{ collector.stats|length }})

{% for name, stat in collector.stats %}

{{ name }}

Driver Name {{ collector.instances[name].driverName }} ( {{ collector.driverUsed[collector.instances[name].driverName] }} )
Driver Info {{ stat.info|nl2br }}
Driver Size {{ stat.size|sizeFormat(1) }}
Driver Data {{ stat.data }}
Driver RawData {{ dump(stat.rawData) }}
Driver Config {{ dump(collector.instances[name].driverConfig) }}
{% endfor %}

PhpFastCache Core Config ({{ collector.coreConfig|length }})

{% for key, value in collector.coreConfig %} {% endfor %}
Key Value
{{ key }} {{ dump(value) }}

PhpFastCache Project Config ({{ collector.projectConfig|length }})

{% for key, value in collector.projectConfig %} {% endfor %}
Key Value
{{ key }} {{ dump(value) }}

PhpFastCache Twig Cache Blocks ({{ collector.twigCacheBlocks|length }})

{% for key, block in collector.twigCacheBlocks %} {% set blockGenTime = block.cacheGenTime*1000 %} {% endfor %}
Block ID Cache Hit Size Time to Live (ttl) Generation time
{{ key }} {{ block.cacheHit ? 'Yes' : 'No' }} {{ block.cacheSize|sizeFormat(1) }} {{ block.cacheTtl }}{{ (blockGenTime < 1000 ? blockGenTime|round(2) ~ 'ms' : (blockGenTime / 1000)|round(4) ~ 's') }}

PhpFastCache API Changelog

{{ collector.apiChangelog }}
{% endblock %}