function CacheTagsInvalidator::purge
Same name and namespace in other branches
- main core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php \Drupal\Core\Cache\CacheTagsInvalidator::purge()
Purge cache tag invalidations.
Overrides CacheTagsPurgeInterface::purge
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheTagsInvalidator.php, line 59
Class
- CacheTagsInvalidator
- Passes cache tag events to classes that wish to respond to them.
Namespace
Drupal\Core\CacheCode
public function purge() : void {
foreach ($this->invalidators as $invalidator) {
if ($invalidator instanceof CacheTagsPurgeInterface) {
$invalidator->purge();
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.