@@ -65,32 +65,32 @@ |
||
| 65 | 65 | } |
| 66 | 66 | $stats[ $instanceName ] = $cache->getStats(); |
| 67 | 67 | $instances[ $instanceName ] = [ |
| 68 | - 'driverName' => $cache->getDriverName(), |
|
| 69 | - 'driverConfig' => $cache->getConfig(), |
|
| 68 | + 'driverName' => $cache->getDriverName(), |
|
| 69 | + 'driverConfig' => $cache->getConfig(), |
|
| 70 | 70 | ]; |
| 71 | 71 | $driverUsed[ $cache->getDriverName() ] = get_class($cache); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | $this->data = [ |
| 75 | - 'twigCacheBlocks' => $this->twig_cache_blocks, |
|
| 76 | - 'apiVersion' => phpFastCacheApi::getVersion(), |
|
| 77 | - 'bundleVersion' => phpFastCacheBundle::VERSION, |
|
| 78 | - 'apiChangelog' => phpFastCacheApi::getChangelog(), |
|
| 79 | - 'driverUsed' => $driverUsed, |
|
| 80 | - 'instances' => $instances, |
|
| 81 | - 'stats' => $stats, |
|
| 82 | - 'size' => $size, |
|
| 83 | - 'hits' => [ |
|
| 75 | + 'twigCacheBlocks' => $this->twig_cache_blocks, |
|
| 76 | + 'apiVersion' => phpFastCacheApi::getVersion(), |
|
| 77 | + 'bundleVersion' => phpFastCacheBundle::VERSION, |
|
| 78 | + 'apiChangelog' => phpFastCacheApi::getChangelog(), |
|
| 79 | + 'driverUsed' => $driverUsed, |
|
| 80 | + 'instances' => $instances, |
|
| 81 | + 'stats' => $stats, |
|
| 82 | + 'size' => $size, |
|
| 83 | + 'hits' => [ |
|
| 84 | 84 | 'read' => (int) CacheManager::$ReadHits, |
| 85 | 85 | 'write' => (int) CacheManager::$WriteHits, |
| 86 | - ], |
|
| 87 | - 'coreConfig' => [ |
|
| 86 | + ], |
|
| 87 | + 'coreConfig' => [ |
|
| 88 | 88 | 'namespacePath' => CacheManager::getNamespacePath(), |
| 89 | - ], |
|
| 90 | - 'projectConfig' => [ |
|
| 89 | + ], |
|
| 90 | + 'projectConfig' => [ |
|
| 91 | 91 | 'twig_driver' => $this->cache->getConfig()['twig_driver'], |
| 92 | 92 | 'twig_block_debug' => $this->cache->getConfig()['twig_block_debug'], |
| 93 | - ], |
|
| 93 | + ], |
|
| 94 | 94 | ]; |
| 95 | 95 | } |
| 96 | 96 | |
@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | if($this->cacheCollector instanceof CacheCollector){ |
| 79 | 79 | $this->cacheCollector->setTwigCacheBlock($unprefixedKey, [ |
| 80 | - 'cacheHit' => $cacheData !== null, |
|
| 81 | - 'cacheTtl' => $key['lifetime'], |
|
| 82 | - 'cacheSize' => mb_strlen((string) $cacheData), |
|
| 83 | - 'cacheGenTime' => $generationTime |
|
| 80 | + 'cacheHit' => $cacheData !== null, |
|
| 81 | + 'cacheTtl' => $key['lifetime'], |
|
| 82 | + 'cacheSize' => mb_strlen((string) $cacheData), |
|
| 83 | + 'cacheGenTime' => $generationTime |
|
| 84 | 84 | ]); |
| 85 | 85 | } |
| 86 | 86 | |
@@ -115,10 +115,10 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | if($this->cacheCollector instanceof CacheCollector){ |
| 117 | 117 | $this->cacheCollector->setTwigCacheBlock($unprefixedKey, [ |
| 118 | - 'cacheHit' => false, |
|
| 119 | - 'cacheTtl' => $key['lifetime'], |
|
| 120 | - 'cacheSize' => mb_strlen((string) $block), |
|
| 121 | - 'cacheGenTime' => $generationTime |
|
| 118 | + 'cacheHit' => false, |
|
| 119 | + 'cacheTtl' => $key['lifetime'], |
|
| 120 | + 'cacheSize' => mb_strlen((string) $block), |
|
| 121 | + 'cacheGenTime' => $generationTime |
|
| 122 | 122 | ]); |
| 123 | 123 | } |
| 124 | 124 | |