Neos\Flow\Cache\CacheManager::flushCachesByTag PHP Method

flushCachesByTag() public method

Flushes entries tagged by the specified tag of all registered caches.
public flushCachesByTag ( string $tag, boolean $flushPersistentCaches = false ) : void
$tag string Tag to search for
$flushPersistentCaches boolean If set to TRUE, even those caches which are flagged as "persistent" will be flushed
return void
    public function flushCachesByTag($tag, $flushPersistentCaches = false)
    {
        $this->createAllCaches();
        /** @var FrontendInterface $cache */
        foreach ($this->caches as $identifier => $cache) {
            if (!$flushPersistentCaches && $this->isCachePersistent($identifier)) {
                continue;
            }
            $cache->flushByTag($tag);
        }
    }