public static function Cache::invalidateTags in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Cache/Cache.php \Drupal\Core\Cache\Cache::invalidateTags()
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.
48 calls to Cache::invalidateTags()
- AliasStorage::delete in core/
lib/ Drupal/ Core/ Path/ AliasStorage.php - Deletes a URL alias.
- AliasStorage::save in core/
lib/ Drupal/ Core/ Path/ AliasStorage.php - Saves a path alias to the database.
- Block::postSave in core/
modules/ block/ src/ Entity/ Block.php - Acts on a saved entity before the insert or update hook is invoked.
- BlockCacheTest::testCachePerRole in core/
modules/ block/ src/ Tests/ BlockCacheTest.php - Test "user.roles" cache context.
- BlockViewBuilderTest::testBlockViewBuilderViewAlter in core/
modules/ block/ src/ Tests/ BlockViewBuilderTest.php - Tests block view altering.
File
- core/
lib/ Drupal/ Core/ Cache/ Cache.php, line 149 - Contains \Drupal\Core\Cache\Cache.
Class
- Cache
- Helper methods for cache.
Namespace
Drupal\Core\CacheCode
public static function invalidateTags(array $tags) {
\Drupal::service('cache_tags.invalidator')
->invalidateTags($tags);
}