ContentCacheFlusher
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.
The {\Neos\Neos\Fusion\Cache\AssetChangeHandlerForCacheFlushing} also calls this ContentCacheFlusher to flush the caches of all Nodes using a given asset that has changed.
Properties
| protected bool | $debugMode |
Methods
No description
Main entry point to flush the caches of a given workspaceName with a given strategy.
Main entry point to flush the caches of a given NodeAggregate with a given strategy.
Flush caches according to the given tags and strategy.
Flush caches according to the given tags immediately.
Collect tags to get flushed on shutdown.
Flush caches according to the previously registered changes.
No description
Signal that is triggered whenever cache tags get flushed
Details
__construct(ContentCache $contentCache, LoggerInterface $systemLogger, ContentRepositoryRegistry $contentRepositoryRegistry, PersistenceManagerInterface $persistenceManager)
No description
void
flushWorkspace(FlushWorkspaceRequest $flushWorkspaceRequest, CacheFlushingStrategy $cacheFlushingStrategy)
Main entry point to flush the caches of a given workspaceName with a given strategy.
void
flushNodeAggregate(FlushNodeAggregateRequest $flushNodeAggregateRequest, CacheFlushingStrategy $cacheFlushingStrategy)
Main entry point to flush the caches of a given NodeAggregate with a given strategy.
protected void
flushTags(array $tagsToFlush, CacheFlushingStrategy $cacheFlushingStrategy)
Flush caches according to the given tags and strategy.
protected void
flushTagsImmediately(array $tagsToFlush)
Flush caches according to the given tags immediately.
protected void
collectTagsForFlushOnShutdown(array $tagsToFlush)
Collect tags to get flushed on shutdown.
protected array
getAllImplementedNodeTypeNames(NodeType $nodeType)
No description
void
flushCollectedTags()
Flush caches according to the previously registered changes.
void
shutdownObject()
No description
protected void
emitTagsFlushed(array $tagsToFlush)
Signal that is triggered whenever cache tags get flushed