PHP Класс Neos\Neos\TypoScript\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.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$assetService Neos\Media\Domain\Service\AssetService
$contentCache Neos\Fusion\Core\Cache\ContentCache
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$tagsToFlush array

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
getAllImplementedNodeTypes ( NodeType $nodeType ) : array

Описание методов

getAllImplementedNodeTypes() защищенный Метод

protected getAllImplementedNodeTypes ( NodeType $nodeType ) : array
$nodeType Neos\ContentRepository\Domain\Model\NodeType
Результат array

registerAssetResourceChange() публичный Метод

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
Результат void

registerNodeChange() публичный Метод

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
Результат void

shutdownObject() публичный Метод

Flush caches according to the previously registered node changes.
public shutdownObject ( ) : void
Результат void

Описание свойств

$assetService защищенное свойство

protected AssetService,Neos\Media\Domain\Service $assetService
Результат Neos\Media\Domain\Service\AssetService

$contentCache защищенное свойство

protected ContentCache,Neos\Fusion\Core\Cache $contentCache
Результат Neos\Fusion\Core\Cache\ContentCache

$systemLogger защищенное свойство

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Результат Neos\Flow\Log\SystemLoggerInterface

$tagsToFlush защищенное свойство

protected array $tagsToFlush
Результат array