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
ファイル: InvalidationSubscriber.php プロジェクト: sulu/sulu
 /**
  * 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
ファイル: CustomUrlManager.php プロジェクト: sulu/sulu
 /**
  * {@inheritdoc}
  */
 public function invalidateRoute($webspaceKey, RouteDocument $routeDocument)
 {
     $this->cacheHandler->invalidatePath(PathHelper::relativizePath($routeDocument->getPath(), $this->getRoutesPath($webspaceKey)));
 }