PHP Class Neos\Neos\Fusion\Cache\ContentCacheFlusher

The method registerNodeChange() is triggered by a signal which is configured in the Package class of the Neos.Neos package (this package). Information on changed nodes is collected by this method and the respective TypoScript content cache entries are flushed in one operation during Flow's shutdown procedure.
Show file Open project: neos/neos

Protected Properties

Property Type Description
$assetService Neos\Media\Domain\Service\AssetService
$contentCache Neos\Fusion\Core\Cache\ContentCache
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$tagsToFlush array

Public Methods

Method Description
registerAssetResourceChange ( Neos\Media\Domain\Model\AssetInterface $asset ) : void Fetches possible usages of the asset and registers nodes that use the asset as changed.
registerNodeChange ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void 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.
shutdownObject ( ) : void Flush caches according to the previously registered node changes.

Protected Methods

Method Description
getAllImplementedNodeTypes ( NodeType $nodeType ) : array

Method Details

getAllImplementedNodeTypes() protected method

protected getAllImplementedNodeTypes ( NodeType $nodeType ) : array
$nodeType Neos\ContentRepository\Domain\Model\NodeType
return array

registerAssetResourceChange() public method

Fetches possible usages of the asset and registers nodes that use the asset as changed.
public registerAssetResourceChange ( Neos\Media\Domain\Model\AssetInterface $asset ) : void
$asset Neos\Media\Domain\Model\AssetInterface
return void

registerNodeChange() public method

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.
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

shutdownObject() public method

Flush caches according to the previously registered node changes.
public shutdownObject ( ) : void
return void

Property Details

$assetService protected property

protected AssetService,Neos\Media\Domain\Service $assetService
return Neos\Media\Domain\Service\AssetService

$contentCache protected property

protected ContentCache,Neos\Fusion\Core\Cache $contentCache
return Neos\Fusion\Core\Cache\ContentCache

$systemLogger protected property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
return Neos\Flow\Log\SystemLoggerInterface

$tagsToFlush protected property

protected array $tagsToFlush
return array