$tags[] = CacheManager::ITEM_TAG_SEARCH; $this->cacheManager->clearSearchCache(); break; case 'rewrite': case 'router': $this->cacheManager->clearRewriteCache(); break; case 'opcache': $this->cacheManager->clearOpCache(); break; default: thrownewNotFoundException(sprintf('Cache "%s" is not a valid cache id.', $cache)); }