/** * 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 ::clearSystemCache */ public function clearSystemCacheClearsSystemCache() { $this->dataHandlerMock->expects($this->once())->method('clear_cacheCmd')->with('system'); $this->subject->clearSystemCache(); }