src/Doctrine/Tracy/Panel.php
private function renderPanelCacheStatistics(): string
	{
		if (empty($this->entityManager)) {
			return '';
		}

		$config = $this->entityManager->getConfiguration();
		if (!$config->isSecondLevelCacheEnabled()) {
			return '';
		}

		$loggerChain = $config->getSecondLevelCacheConfiguration()->getCacheLogger();

		if (!$loggerChain instanceof Doctrine\ORM\Cache\Logging\CacheLoggerChain) {
			return '';
		}

		if (!$statistics = $loggerChain->getLogger('statistics')) {
			return '';
		}

		return Dumper::toHtml($statistics, [Dumper::DEPTH => 5]);
	}
private function renderPanelCacheStatistics(): string
	{
		if (empty($this->entityManager)) {
			return '';
		}

		$config = $this->entityManager->getConfiguration();
		if (!$config->isSecondLevelCacheEnabled()) {
			return '';
		}

		$loggerChain = $config->getSecondLevelCacheConfiguration()->getCacheLogger();

		if (!$loggerChain instanceof Doctrine\ORM\Cache\Logging\CacheLoggerChain) {
			return '';
		}

		if (!$statistics = $loggerChain->getLogger('statistics')) {
			return '';
		}

		return Dumper::toHtml($statistics, [Dumper::DEPTH => 5]);
	}
private function renderPanelCacheStatistics ( ) : string { if ( empty ( $ this -> entityManager ) ) { return '' ; } $ config = $ this -> entityManager -> getConfiguration ( ) ; if ( ! $ config -> isSecondLevelCacheEnabled ( ) ) { return '' ; } $ loggerChain = $ config -> getSecondLevelCacheConfiguration ( ) -> getCacheLogger ( ) ; if ( ! $ loggerChain instanceof Doctrine \ ORM \ Cache \ Logging \ CacheLoggerChain ) { return '' ; } if ( ! $ statistics = $ loggerChain -> getLogger ( 'statistics' ) ) { return '' ; } return Dumper :: toHtml ( $ statistics , [ Dumper :: DEPTH => 5 ] ) ; }
Renders cache statistics.

@return string
Renders cache statistics .