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

[4.x] Fix error from static caching invalidator when deleting entries #9191

Merged

Conversation

duncanmcclean
Copy link
Member

This pull request attempts to fix an issue from the Static Caching invalidator when deleting entries in a structured collection.

When you have a structured collection, the invalidation logic would attempt to get the entry's URL but in doing so it called a method on an entry which no longer existed.

This PR changes when invalidation happens for entries. Instead of it happening after the entry has been deleted (& removed from the tree), it'll happen before the entry is deleted and removed from the tree so the full entry URI is known and to prevent the error from happening.

Fixes #5836.

@duncanmcclean duncanmcclean marked this pull request as ready for review January 8, 2024 17:15
@jasonvarga jasonvarga merged commit bc44306 into 4.x Jan 8, 2024
36 checks passed
@jasonvarga jasonvarga deleted the fix/error-when-deleting-entry-with-static-caching-enabled branch January 8, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error Deleting Collection Entries When Using Static Caching
2 participants