function CacheTagsInvalidator::resetChecksums

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php \Drupal\Core\Cache\CacheTagsInvalidator::resetChecksums()
  2. 10 core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php \Drupal\Core\Cache\CacheTagsInvalidator::resetChecksums()
  3. 11.x 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();
        }
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.