[BUGFIX] No cache statistics in AJAX requests
authorAndreas Wolf <andreas.wolf@typo3.org>
Sun, 7 Jun 2015 19:44:59 +0000 (21:44 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sun, 7 Jun 2015 19:50:15 +0000 (21:50 +0200)
Classes/Dav/CachingWebDavFrontend.php

index 1eb88de..1e89530 100644 (file)
@@ -109,13 +109,15 @@ class CachingWebDavFrontend extends WebDavFrontend {
        }
 
        public function logCacheStatistics() {
-               print_r(sprintf('WebDAV frontend cache stats (hits/misses): '
+               if ($GLOBALS['TYPO3_AJAX'] === TRUE) {
+                       return;
+               }
+               sprintf('WebDAV frontend cache stats (hits/misses): '
                        .'propFind %d/%d, listFiles %d/%d, listFolders %d/%d, getFileInfo %d/%d',
                        $this->cacheHits['propFind'], $this->cacheMisses['propFind'],
                        $this->cacheHits['listFiles'], $this->cacheMisses['listFiles'],
                        $this->cacheHits['listFolders'], $this->cacheMisses['listFolders'],
                        $this->cacheHits['getFileInfo'], $this->cacheMisses['getFileInfo']
-                       )
                );
        }