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

Breadcrumb

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

function Store::purge

Purges data for the given URL.

This method purges both the HTTP and the HTTPS version of the cache entry.

Return value

bool true if the URL exists with either HTTP or HTTPS scheme and has been purged, false otherwise

Overrides StoreInterface::purge

File

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

Class

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

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function purge(string $url) : bool {
    $http = preg_replace('#^https:#', 'http:', $url);
    $https = preg_replace('#^http:#', 'https:', $url);
    $purgedHttp = $this->doPurge($http);
    $purgedHttps = $this->doPurge($https);
    return $purgedHttp || $purgedHttps;
}

API Navigation

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