SubgraphCachePool
final class SubgraphCachePool (View source)
| internal |
Accessors to in Memory Cache
Detail for runtime performance improvement of the different implementations of {\Neos\ContentRepositoryRegistry\SubgraphCachingInMemory\ContentSubgraphWithRuntimeCaches}. You never need this externally.
All cache accessors have a {\Neos\ContentRepository\Core\Projection\ContentGraph\ContentSubgraphInterface} passed in; and the identity of this content subgraph (ContentRepositoryId, WorkspaceName, DimensionSpacePoint, VisibilityConstraints) will be used to find the right cache.
Methods
Fetching a content graph requires a sql query. This is why we cache the actual subgraph instances here as well, to avoid having each time fetched the content graph again.
No description
Details
NodePathCache
getNodePathCache(ContentSubgraphInterface $subgraph)
No description
NodeByNodeAggregateIdCache
getNodeByNodeAggregateIdCache(ContentSubgraphInterface $subgraph)
No description
AllChildNodesByNodeIdCache
getAllChildNodesByNodeIdCache(ContentSubgraphInterface $subgraph)
No description
NamedChildNodeByNodeIdCache
getNamedChildNodeByNodeIdCache(ContentSubgraphInterface $subgraph)
No description
ParentNodeIdByChildNodeIdCache
getParentNodeIdByChildNodeIdCache(ContentSubgraphInterface $subgraph)
No description
ContentSubgraphInterface
getContentSubgraph(ContentRepository $contentRepository, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint, VisibilityConstraints $visibilityConstraints)
Fetching a content graph requires a sql query. This is why we cache the actual subgraph instances here as well, to avoid having each time fetched the content graph again.
void
reset(bool $disable)
No description