Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Store.php

function Store::doPurge

Purges data for the given URL.

1 call to Store::doPurge()
Store::purge in vendor/symfony/http-kernel/HttpCache/Store.php
Purges data for the given URL.

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 332

Class

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

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function doPurge(string $url) : bool {
    $key = $this->getCacheKey(Request::create($url));
    if (isset($this->locks[$key])) {
        flock($this->locks[$key], \LOCK_UN);
        fclose($this->locks[$key]);
        unset($this->locks[$key]);
    }
    if (is_file($path = $this->getPath($key))) {
        unlink($path);
        return true;
    }
    return false;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal