You are here

public function PhpBackend::invalidateAll in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/PhpBackend.php \Drupal\Core\Cache\PhpBackend::invalidateAll()
  2. 9 core/lib/Drupal/Core/Cache/PhpBackend.php \Drupal\Core\Cache\PhpBackend::invalidateAll()

File

core/lib/Drupal/Core/Cache/PhpBackend.php, line 215

Class

PhpBackend
Defines a PHP cache implementation.

Namespace

Drupal\Core\Cache

Code

public function invalidateAll() {
  foreach ($this
    ->storage()
    ->listAll() as $cidhash) {
    $this
      ->invalidateByHash($cidhash);
  }
}