You are here

public function CacheTagsInvalidator::resetChecksums in Drupal 10

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

Reset statically cached tags in all cache tag checksum services.

This is only used by tests.

File

core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 44

Class

CacheTagsInvalidator
Passes cache tag events to classes that wish to respond to them.

Namespace

Drupal\Core\Cache

Code

public function resetChecksums() {
  foreach ($this->invalidators as $invalidator) {
    if ($invalidator instanceof CacheTagsChecksumInterface) {
      $invalidator
        ->reset();
    }
  }
}