public function flushCachesByTag($tag) { $this->routeCache->flushByTag($tag); $this->resolveCache->flushByTag($tag); }
/** * 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(); }