Neos\Neos\Routing\Cache\RouteCacheFlusher::registerNodeChange PHP Method

registerNodeChange() public method

Schedules flushing of the routing cache entries for the given $node Note that child nodes are flushed automatically because they are tagged with all parents.
public registerNodeChange ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface The node which has changed in some way
return void
    public function registerNodeChange(NodeInterface $node)
    {
        if (in_array($node->getIdentifier(), $this->tagsToFlush)) {
            return;
        }
        if (!$node->getNodeType()->isOfType('Neos.Neos:Document')) {
            return;
        }
        $this->tagsToFlush[] = $node->getIdentifier();
    }