Invalidate a path or URL.
public invalidatePath ( string $path, array $headers = [] ) | ||
$path | string | Path or URL |
$headers | array | HTTP headers (optional) |
/** * Invalidates all urls which are assigned to the given document in the given locale. * * @param $document * @param $locale */ private function invalidateDocumentUrls($document, $locale) { foreach ($this->getLocaleUrls($document, $locale) as $url) { $this->pathHandler->invalidatePath($url); } }
/** * {@inheritdoc} */ public function invalidateRoute($webspaceKey, RouteDocument $routeDocument) { $this->cacheHandler->invalidatePath(PathHelper::relativizePath($routeDocument->getPath(), $this->getRoutesPath($webspaceKey))); }