function CacheTagsInvalidatorInterface::invalidateTags

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

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

Parameters

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

7 methods override CacheTagsInvalidatorInterface::invalidateTags()
BackendChain::invalidateTags in core/lib/Drupal/Core/Cache/BackendChain.php
Marks cache items with any of the specified tags as invalid.
CacheBackendDecorator::invalidateTags in core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php
Marks cache items with any of the specified tags as invalid.
CacheTagsChecksumDecorator::invalidateTags in core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php
Marks cache items with any of the specified tags as invalid.
CacheTagsInvalidator::invalidateTags in core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php
Marks cache items with any of the specified tags as invalid.
ChainedFastBackend::invalidateTags in core/lib/Drupal/Core/Cache/ChainedFastBackend.php
Marks cache items with any of the specified tags as invalid.

... See full list

File

core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php, line 22

Class

CacheTagsInvalidatorInterface
Defines required methods for classes wanting to handle cache tag changes.

Namespace

Drupal\Core\Cache

Code

public function invalidateTags(array $tags);

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