Neos\Flow\Mvc\Routing\RouterCachingService::flushCachesByTag PHP 메소드

flushCachesByTag() 공개 메소드

Flushes 'findMatchResults' and 'resolve' caches for the given $tag
public flushCachesByTag ( string $tag ) : void
$tag string
리턴 void
    public function flushCachesByTag($tag)
    {
        $this->routeCache->flushByTag($tag);
        $this->resolveCache->flushByTag($tag);
    }

Usage Example

 /**
  * 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();
 }
All Usage Examples Of Neos\Flow\Mvc\Routing\RouterCachingService::flushCachesByTag