flushCachesByTag() public method

Flushes 'findMatchResults' and 'resolve' caches for the given $tag
public flushCachesByTag ( string $tag ) : void
$tag string
return void
 /**
  * Flush caches according to the previously registered node changes.
  *
  * @return void
  */
 public function commit()
 {
     foreach ($this->tagsToFlush as $tag) {
         $this->routeCachingService->flushCachesByTag($tag);
     }
     $this->tagsToFlush = array();
 }
 /**
  * Removes all routing cache entries for the given $nodeData
  *
  * @param NodeInterface $node
  * @return void
  */
 protected function flushRoutingCacheForNode(NodeInterface $node)
 {
     $nodeData = $node->getNodeData();
     $nodeDataIdentifier = $this->persistenceManager->getIdentifierByObject($nodeData);
     if ($nodeDataIdentifier === null) {
         return;
     }
     $this->routerCachingService->flushCachesByTag($nodeDataIdentifier);
 }