You are here

public function CacheBackendWrapper::invalidateTags in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::invalidateTags()
  2. 8 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::invalidateTags()
  3. 8.2 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::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

webprofiler/src/Cache/CacheBackendWrapper.php, line 149

Class

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

Namespace

Drupal\webprofiler\Cache

Code

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