public function Store::purge

Purges data for the given URL.

Parameters

string $url A URL:

Return value

Boolean true if the URL exists and has been purged, false otherwise

Overrides StoreInterface::purge

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php, line 282

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function purge($url) {
  if (is_file($path = $this
    ->getPath($this
    ->getCacheKey(Request::create($url))))) {
    unlink($path);
    return true;
  }
  return false;
}