public function CacheTagsInvalidator::invalidateTags
public CacheTagsInvalidator::invalidateTags(array $tags)
Marks cache items with any of the specified tags as invalid.
Parameters
string[] $tags: The list of tags for which to invalidate cache items.
Overrides CacheTagsInvalidatorInterface::invalidateTags
File
- core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 24
Class
- CacheTagsInvalidator
- Passes cache tag events to classes that wish to respond to them.
Namespace
Drupal\Core\CacheCode
public function invalidateTags(array $tags) { assert('Drupal\Component\Assertion\Inspector::assertAllStrings($tags)', 'Cache tags must be strings.'); // Notify all added cache tags invalidators. foreach ($this->invalidators as $invalidator) { $invalidator->invalidateTags($tags); } // Additionally, notify each cache bin if it implements the service. foreach ($this->getInvalidatorCacheBins() as $bin) { $bin->invalidateTags($tags); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!CacheTagsInvalidator.php/function/CacheTagsInvalidator::invalidateTags/8.1.x