/**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * @test
  * @covers ::clearSystemCache
  */
 public function clearSystemCacheClearsSystemCache()
 {
     $this->dataHandlerMock->expects($this->once())->method('clear_cacheCmd')->with('system');
     $this->subject->clearSystemCache();
 }