function CacheTagsChecksumTrait::doInvalidateTags

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php \Drupal\Core\Cache\CacheTagsChecksumTrait::doInvalidateTags()
  2. 8.9.x core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php \Drupal\Core\Cache\CacheTagsChecksumTrait::doInvalidateTags()
  3. 10 core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php \Drupal\Core\Cache\CacheTagsChecksumTrait::doInvalidateTags()

Marks cache items with any of the specified tags as invalid.

Parameters

string[] $tags: The set of tags for which to invalidate cache items.

Throws

\Exception Thrown if the table could not be created or the database connection failed.

2 calls to CacheTagsChecksumTrait::doInvalidateTags()
CacheTagsChecksumTrait::invalidateTags in core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php
Implements \Drupal\Core\Cache\CacheTagsInvalidatorInterface::invalidateTags()
CacheTagsChecksumTrait::rootTransactionEndCallback in core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php
Callback to be invoked just after a database transaction gets committed.
1 method overrides CacheTagsChecksumTrait::doInvalidateTags()
DatabaseCacheTagsChecksum::doInvalidateTags in core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php
Marks cache items with any of the specified tags as invalid.

File

core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php, line 196

Class

CacheTagsChecksumTrait
A trait for cache tag checksum implementations.

Namespace

Drupal\Core\Cache

Code

protected abstract function doInvalidateTags(array $tags);

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