public static function Cache::deleteTags

Deletes items from all bins with any of the specified tags.

Many sites have more than one active cache backend, and each backend may use a different strategy for storing tags against cache items, and deleting cache items associated with a given tag.

When deleting a given list of tags, we iterate over each cache backend, and and call deleteTags() on each.

Parameters

array $tags: The list of tags to delete cache items for.

1 call to Cache::deleteTags()
views_invalidate_cache in drupal/core/modules/views/views.module
Invalidate the views cache, forcing a rebuild on the next grab of table data.

File

drupal/core/lib/Drupal/Core/Cache/Cache.php, line 28
Contains \Drupal\Core\Cache\Cache.

Class

Cache
Helper methods for cache.

Namespace

Drupal\Core\Cache

Code

public static function deleteTags(array $tags) {
  foreach (static::getBins() as $cache_backend) {
    $cache_backend
      ->deleteTags($tags);
  }
}