public function flushCachesByTag(string $tag, bool $flushPersistentCaches = false): void
    {
        $this->createAllCaches();
        /** @var FrontendInterface $cache */
        foreach ($this->caches as $identifier => $cache) {
            if (!$flushPersistentCaches && $this->isCachePersistent($identifier)) {
                continue;
            }
            $cache->flushByTag($tag);
        }
    }
public function flushCachesByTag(string $tag, bool $flushPersistentCaches = false): void
    {
        $this->createAllCaches();
        /** @var FrontendInterface $cache */
        foreach ($this->caches as $identifier => $cache) {
            if (!$flushPersistentCaches && $this->isCachePersistent($identifier)) {
                continue;
            }
            $cache->flushByTag($tag);
        }
    }
public function flushCachesByTag ( string $ tag , bool $ flushPersistentCaches = false ) : void { $ this -> createAllCaches ( ) ; /** @var FrontendInterface $cache */ foreach ( $ this -> caches as $ identifier => $ cache ) { if ( ! $ flushPersistentCaches && $ this -> isCachePersistent ( $ identifier ) ) { continue ; } $ cache -> flushByTag ( $ tag ) ; } }
Flushes entries tagged by the specified tag of all registered
caches.

@param string $tag Tag to search for
@param boolean $flushPersistentCaches If set to true, even those caches which are flagged as "persistent" will be flushed
@return void
@api
Flushes entries tagged by the specified tag of all registered caches .