Note that this is called during the request therefore the task of this
interfaces method should normally be to record paths which should later
be invalidated in the flush interface.
/** * 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))); }