get($cacheType)->getBackend()->clean(); } } /** * Clean all cache */ public static function cleanAll() { $cachePool = self::getCachePool(); foreach ($cachePool as $cacheType) { $cacheType->getBackend()->clean(); } } /** * Get cache pool * * @return Pool */ private static function getCachePool() { return Bootstrap::getObjectManager() ->get(Pool::class); } }