Skip to content

Conversation

@ryanmitchell
Copy link
Contributor

See statamic/eloquent-driver#495 for background.

The CollectionStructure validateTree method is being called multiple times on a page and querying all collection entries when it does. This is a significant performance bottleneck.

This PR updates it to be blinked so we only query once.

I'm sure I've missed somewhere this blink cache needs cleared...

@ryanmitchell ryanmitchell marked this pull request as draft September 3, 2025 14:58
@ryanmitchell ryanmitchell marked this pull request as ready for review September 4, 2025 12:54
@jasonvarga jasonvarga merged commit a49b687 into statamic:5.x Sep 24, 2025
24 checks passed
@ryanmitchell ryanmitchell deleted the fix/collection-structure-entries-duplicate-queries branch September 24, 2025 17:41
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.

2 participants