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.
Afficher le fichier Open project: neos/neos

Protected Properties

Свойство Type Description
$assetService Neos\Media\Domain\Service\AssetService
$contentCache Neos\Fusion\Core\Cache\ContentCache
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$tagsToFlush array

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
getAllImplementedNodeTypes ( NodeType $nodeType ) : array

Method Details

getAllImplementedNodeTypes() protected méthode

protected getAllImplementedNodeTypes ( NodeType $nodeType ) : array
$nodeType Neos\ContentRepository\Domain\Model\NodeType
Résultat array

registerAssetResourceChange() public méthode

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
Résultat void

registerNodeChange() public méthode

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
Résultat void

shutdownObject() public méthode

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

Property Details

$assetService protected_oe property

protected AssetService,Neos\Media\Domain\Service $assetService
Résultat Neos\Media\Domain\Service\AssetService

$contentCache protected_oe property

protected ContentCache,Neos\Fusion\Core\Cache $contentCache
Résultat Neos\Fusion\Core\Cache\ContentCache

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface

$tagsToFlush protected_oe property

protected array $tagsToFlush
Résultat array