Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: 5243 remove ContentGraphFinder runtime cache #5246

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Sep 16, 2024

Followup to #5244
Related #5242
See #5243

With the removal of the cr core wrapped content subgraph with runtime cache feature and making it a Neos.Neos feature we dont have to cache the content graphs any further as well. (This was initially only done to ensure that the graphs subgraph pool is used)

The only downside to this is that calling getContentGraph will now always issue an sql query to get the underlying content stream id. The advantage obviously that its always the latest, but its not cached.

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks, but we should remove the implements WithMarkStaleInterface if markStale() is a no-op

@mhsdesign mhsdesign force-pushed the task/5243-remove-cr-core-runtime-caches branch from b736d61 to 1ad4dd6 Compare September 17, 2024 09:55
@mhsdesign
Copy link
Member Author

Ahh yes good catch, implemented.

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks, +1 by reading

ps: force pushes make reviews harder :)

Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test failure seems entirely unrelated, change looks good so ✅

@kitsunet kitsunet merged commit e4de399 into 9.0 Sep 17, 2024
9 of 10 checks passed
@kitsunet kitsunet deleted the task/5243-remove-cr-core-runtime-caches branch September 17, 2024 14:26
mhsdesign added a commit that referenced this pull request Oct 1, 2024
With #5246 the cache was naively removed ^^
But with the additional complexity of fetching workspaces etc it makes sense to reintroduce this cache layer.
mhsdesign added a commit that referenced this pull request Oct 15, 2024
In commit 2a781d2 the cache invalidation was partly repaired
But as we removed the content graph cache layer currently in 9.0 #5246

A reintroduction will be discussed as part of another change.

Related #5039
neos-bot pushed a commit to neos/contentgraph-doctrinedbaladapter that referenced this pull request Oct 18, 2024
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.
neos-bot pushed a commit to neos/contentgraph-doctrinedbaladapter that referenced this pull request Oct 18, 2024
In commit d57195d the cache invalidation was partly repaired
But as we removed the content graph cache layer currently in 9.0 neos/neos-development-collection#5246

A reintroduction will be discussed as part of another change.

Related neos/neos-development-collection#5039
neos-bot pushed a commit to neos/contentrepository-core that referenced this pull request Oct 18, 2024
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.
neos-bot pushed a commit to neos/contentrepository-core that referenced this pull request Oct 18, 2024
In commit c0ce2ba the cache invalidation was partly repaired
But as we removed the content graph cache layer currently in 9.0 neos/neos-development-collection#5246

A reintroduction will be discussed as part of another change.

Related neos/neos-development-collection#5039
neos-bot pushed a commit to neos/contentrepository-testsuite that referenced this pull request Oct 18, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants