Cache::invalidateTags

public static Cache::invalidateTags(array $tags)

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

Parameters

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

File

core/lib/Drupal/Core/Cache/Cache.php, line 144

Class

Cache
Helper methods for cache.

Namespace

Drupal\Core\Cache

Code

public static function invalidateTags(array $tags) {
  \Drupal::service('cache_tags.invalidator')->invalidateTags($tags);
}
doc_Drupal
2016-10-29 08:49:09
Comments
Leave a Comment

Please login to continue.