Neos.Neos/Classes/Fusion/Cache/ContentCacheFlusher.php
public function registerNodeChange(NodeInterface $node, Workspace $targetWorkspace = null): void
    {
        $this->tagsToFlush[ContentCache::TAG_EVERYTHING] = 'which were tagged with "Everything".';

        if (empty($this->workspacesToFlush[$node->getWorkspace()->getName()])) {
            $this->resolveWorkspaceChain($node->getWorkspace());
        }

        if ($targetWorkspace !== null && empty($this->workspacesToFlush[$targetWorkspace->getName()])) {
            $this->resolveWorkspaceChain($targetWorkspace);
        }

        if (!array_key_exists($node->getWorkspace()->getName(), $this->workspacesToFlush)) {
            return;
        }

        $this->registerAllTagsToFlushForNodeInWorkspace($node, $node->getWorkspace());
        if ($targetWorkspace !== null) {
            $this->registerAllTagsToFlushForNodeInWorkspace($node, $targetWorkspace);
        }
    }
public function registerNodeChange(NodeInterface $node, Workspace $targetWorkspace = null): void
    {
        $this->tagsToFlush[ContentCache::TAG_EVERYTHING] = 'which were tagged with "Everything".';

        if (empty($this->workspacesToFlush[$node->getWorkspace()->getName()])) {
            $this->resolveWorkspaceChain($node->getWorkspace());
        }

        if ($targetWorkspace !== null && empty($this->workspacesToFlush[$targetWorkspace->getName()])) {
            $this->resolveWorkspaceChain($targetWorkspace);
        }

        if (!array_key_exists($node->getWorkspace()->getName(), $this->workspacesToFlush)) {
            return;
        }

        $this->registerAllTagsToFlushForNodeInWorkspace($node, $node->getWorkspace());
        if ($targetWorkspace !== null) {
            $this->registerAllTagsToFlushForNodeInWorkspace($node, $targetWorkspace);
        }
    }
public function registerNodeChange ( NodeInterface $ node , Workspace $ targetWorkspace = null ) : void { $ this -> tagsToFlush [ ContentCache :: TAG_EVERYTHING ] = 'which were tagged with "Everything".' ; if ( empty ( $ this -> workspacesToFlush [ $ node -> getWorkspace ( ) -> getName ( ) ] ) ) { $ this -> resolveWorkspaceChain ( $ node -> getWorkspace ( ) ) ; } if ( $ targetWorkspace !== null && empty ( $ this -> workspacesToFlush [ $ targetWorkspace -> getName ( ) ] ) ) { $ this -> resolveWorkspaceChain ( $ targetWorkspace ) ; } if ( ! array_key_exists ( $ node -> getWorkspace ( ) -> getName ( ) , $ this -> workspacesToFlush ) ) { return ; } $ this -> registerAllTagsToFlushForNodeInWorkspace ( $ node , $ node -> getWorkspace ( ) ) ; if ( $ targetWorkspace !== null ) { $ this -> registerAllTagsToFlushForNodeInWorkspace ( $ node , $ targetWorkspace ) ; } }
Register a node change for a later cache flush. This method is triggered by a signal sent via ContentRepository's Node
model or the Neos Publishing Service.

@param NodeInterface $node The node which has changed in some way
@param Workspace $targetWorkspace An optional workspace to flush
@return void
@throws \Neos\ContentRepository\Exception\NodeTypeNotFoundException
Register a node change for a later cache flush . This method is triggered by a signal sent via ContentRepository s Node model or the Neos Publishing Service .