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

1
2
3
public static function invalidateTags(array $tags) {
  \Drupal::service('cache_tags.invalidator')->invalidateTags($tags);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.