Neos.Neos/Classes/Fusion/Cache/ContentCacheFlusher.php
public function registerAssetChange(AssetInterface $asset)
    {
        if (!$asset->isInUse()) {
            return;
        }

        $cachingHelper = $this->getCachingHelper();

        foreach ($this->assetService->getUsageReferences($asset) as $reference) {
            if (!$reference instanceof AssetUsageInNodeProperties) {
                continue;
            }

            $workspaceHash = $cachingHelper->renderWorkspaceTagForContextNode($reference->getWorkspaceName());

            $this->registerChangeOnNodeIdentifier($workspaceHash . '_' . $reference->getNodeIdentifier());
            $this->registerChangeOnNodeType($reference->getNodeTypeName(), $reference->getNodeIdentifier(), $workspaceHash);

            $assetIdentifier = $this->persistenceManager->getIdentifierByObject($asset);

            $tagName = 'AssetDynamicTag_' . $workspaceHash . '_' . $assetIdentifier;
            $this->tagsToFlush[$tagName] = sprintf('which were tagged with "%s" because asset "%s" has changed.', $tagName, $assetIdentifier);
        }
    }
public function registerAssetChange(AssetInterface $asset)
    {
        if (!$asset->isInUse()) {
            return;
        }

        $cachingHelper = $this->getCachingHelper();

        foreach ($this->assetService->getUsageReferences($asset) as $reference) {
            if (!$reference instanceof AssetUsageInNodeProperties) {
                continue;
            }

            $workspaceHash = $cachingHelper->renderWorkspaceTagForContextNode($reference->getWorkspaceName());

            $this->registerChangeOnNodeIdentifier($workspaceHash . '_' . $reference->getNodeIdentifier());
            $this->registerChangeOnNodeType($reference->getNodeTypeName(), $reference->getNodeIdentifier(), $workspaceHash);

            $assetIdentifier = $this->persistenceManager->getIdentifierByObject($asset);

            $tagName = 'AssetDynamicTag_' . $workspaceHash . '_' . $assetIdentifier;
            $this->tagsToFlush[$tagName] = sprintf('which were tagged with "%s" because asset "%s" has changed.', $tagName, $assetIdentifier);
        }
    }
public function registerAssetChange ( AssetInterface $ asset ) { if ( ! $ asset -> isInUse ( ) ) { return ; } $ cachingHelper = $ this -> getCachingHelper ( ) ; foreach ( $ this -> assetService -> getUsageReferences ( $ asset ) as $ reference ) { if ( ! $ reference instanceof AssetUsageInNodeProperties ) { continue ; } $ workspaceHash = $ cachingHelper -> renderWorkspaceTagForContextNode ( $ reference -> getWorkspaceName ( ) ) ; $ this -> registerChangeOnNodeIdentifier ( $ workspaceHash . '_' . $ reference -> getNodeIdentifier ( ) ) ; $ this -> registerChangeOnNodeType ( $ reference -> getNodeTypeName ( ) , $ reference -> getNodeIdentifier ( ) , $ workspaceHash ) ; $ assetIdentifier = $ this -> persistenceManager -> getIdentifierByObject ( $ asset ) ; $ tagName = 'AssetDynamicTag_' . $ workspaceHash . '_' . $ assetIdentifier ; $ this -> tagsToFlush [ $ tagName ] = sprintf ( 'which were tagged with "%s" because asset "%s" has changed.' , $ tagName , $ assetIdentifier ) ; } }
Fetches possible usages of the asset and registers nodes that use the asset as changed.

@param AssetInterface $asset
@return void
Fetches possible usages of the asset and registers nodes that use the asset as changed .