From 995e20c48339ad8465cbb8092b5c9de9771daf61 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Tue, 1 Oct 2024 23:05:59 +0200 Subject: [PATCH] TASK: Reintroduce content graph / cr read model cache With https://github.com/neos/neos-development-collection/pull/5246 the cache was naively removed ^^ But with the additional complexity of fetching workspaces etc it makes sense to reintroduce this cache layer. --- Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php b/Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php index 84f9206..cbd7721 100644 --- a/Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php +++ b/Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php @@ -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) );