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); }
Please login to continue.