/**
  * Clear all caches except the page cache.
  * This is especially useful on big sites when you can't just drop the page cache.
  *
  * @return void
  */
 public function clearAllExceptPageCacheCommand()
 {
     $clearedCaches = $this->cacheApiService->clearAllExceptPageCache();
     $message = 'Cleared caches: ' . implode(', ', $clearedCaches);
     $this->logger->info($message);
     $this->outputLine($message);
 }
 /**
  * @test
  * @covers ::clearAllExceptPageCache
  */
 public function clearAllExceptPageCacheClearsAllExceptPageCache()
 {
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'] = array(0 => 'cache_core', 1 => 'cache_classes', 2 => 'cache_hash', 3 => 'cache_pages', 4 => 'cache_pagesection', 5 => 'cache_phpcode', 6 => 'cache_runtime', 7 => 'cache_rootline', 8 => 'l10n', 9 => 'extbase_object', 10 => 'extbase_reflection');
     $cacheManager = $this->getMock('TYPO3\\CMS\\Core\\Cache\\CacheManager');
     $cacheManager->expects($this->exactly(11))->method('hasCache');
     $GLOBALS['typo3CacheManager'] = $cacheManager;
     $this->subject->clearAllExceptPageCache();
 }