Skip to content

Commit

Permalink
TASK: Reintroduce content graph / cr read model cache
Browse files Browse the repository at this point in the history
With neos/neos-development-collection#5246 the cache was naively removed ^^
But with the additional complexity of fetching workspaces etc it makes sense to reintroduce this cache layer.
  • Loading branch information
mhsdesign committed Oct 1, 2024
1 parent 01a06fb commit 995e20c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ public function iGetTheNodeAtPath(string $serializedNodePath): void
public function iExpectANodeIdentifiedByXToExistInTheContentGraph(string $serializedNodeDiscriminator): void
{
$nodeDiscriminator = NodeDiscriminator::fromShorthand($serializedNodeDiscriminator);
$contentRepositoryReadModel = $this->currentContentRepository->projectionState(ContentRepositoryReadModel::class);
$contentRepositoryReadModel->forgetInstances();
$matchingWorkspace = $this->currentContentRepository->getWorkspaces()->find(
static fn (Workspace $workspace) => $workspace->currentContentStreamId->equals($nodeDiscriminator->contentStreamId)
);
Expand Down

0 comments on commit 995e20c

Please sign in to comment.