/**
* 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.
*
* @param NodeInterface $node 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();
}