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.
Пример #1
0
 /**
  * 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);
     }
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function invalidateRoute($webspaceKey, RouteDocument $routeDocument)
 {
     $this->cacheHandler->invalidatePath(PathHelper::relativizePath($routeDocument->getPath(), $this->getRoutesPath($webspaceKey)));
 }