class ContentCacheFlusher (View source)

This service flushes Fusion content caches triggered by node changes.

It is called when the projection changes: In this case, it is triggered by {\Neos\Neos\Fusion\Cache\GraphProjectorCatchUpHookForCacheFlushing} which calls this method.. This is the relevant case if publishing a workspace

  • where we f.e. need to flush the cache for Live.

Properties

protected ContentCache $contentCache
protected LoggerInterface $systemLogger

Methods

void
flushNodeAggregate(ContentRepository $contentRepository, ContentStreamId $contentStreamIdentifier, NodeAggregateId $nodeAggregateIdentifier)

Main entry point to directly flush the caches of a given NodeAggregate

void
flushTags(array $tagsToFlush)

Flush caches according to the previously registered node changes.

string[]
getAllImplementedNodeTypeNames(NodeType $nodeType)

No description

void
registerAssetChange(AssetInterface $asset)

Fetches possible usages of the asset and registers nodes that use the asset as changed.

Details

void flushNodeAggregate(ContentRepository $contentRepository, ContentStreamId $contentStreamIdentifier, NodeAggregateId $nodeAggregateIdentifier)

Main entry point to directly flush the caches of a given NodeAggregate

Parameters

ContentRepository $contentRepository
ContentStreamId $contentStreamIdentifier
NodeAggregateId $nodeAggregateIdentifier

Return Value

void

protected void flushTags(array $tagsToFlush)

Flush caches according to the previously registered node changes.

Parameters

array $tagsToFlush

Return Value

void

protected string[] getAllImplementedNodeTypeNames(NodeType $nodeType)

No description

Parameters

NodeType $nodeType

Return Value

string[]

void registerAssetChange(AssetInterface $asset)

Fetches possible usages of the asset and registers nodes that use the asset as changed.

Parameters

AssetInterface $asset

Return Value

void

Exceptions

NodeTypeNotFoundException