public function CacheTagsInvalidator::resetChecksums

public 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 43

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();
    }
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!CacheTagsInvalidator.php/function/CacheTagsInvalidator::resetChecksums/8.1.x