flushCachesByTag() 공개 메소드

Flushes 'findMatchResults' and 'resolve' caches for the given $tag
public flushCachesByTag ( string $tag ) : void
$tag string
리턴 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);
 }