public function purge($locationIds);
public function purgeForContent($contentId) { $contentInfo = $this->contentService->loadContentInfo($contentId); $event = new ContentCacheClearEvent($contentInfo); $this->eventDispatcher->dispatch(MVCEvents::CACHE_CLEAR_CONTENT, $event); $locationIds = []; foreach ($event->getLocationsToClear() as $location) { $locationIds[] = $location->id; } $this->purgeClient->purge(array_unique($locationIds)); }