invalidatePath() public method

Invalidate a path or URL.
public invalidatePath ( string $path, array $headers = [] )
$path string Path or URL
$headers array HTTP headers (optional)
Esempio n. 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);
     }
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function invalidateRoute($webspaceKey, RouteDocument $routeDocument)
 {
     $this->cacheHandler->invalidatePath(PathHelper::relativizePath($routeDocument->getPath(), $this->getRoutesPath($webspaceKey)));
 }