function CacheBackendDecorator::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.

Overrides CacheTagsInvalidatorInterface::invalidateTags

File

core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php, line 139

Class

CacheBackendDecorator
Wraps an existing cache backend to track calls to the cache backend.

Namespace

Drupal\performance_test\Cache

Code

public function invalidateTags(array $tags) {
  if ($this->cacheBackend instanceof CacheTagsInvalidatorInterface) {
    $this->cacheBackend
      ->invalidateTags($tags);
  }
}

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