Skip to content

Don't cache id=>parent queries without limits - #5091

Closed
kevinfodness wants to merge 1 commit into
WordPress:trunkfrom
kevinfodness:fix/page-list-cache
Closed

kevinfodness wants to merge 1 commit into
WordPress:trunkfrom
kevinfodness:fix/page-list-cache

Conversation

@kevinfodness

Copy link
Copy Markdown

Fixes a bug whereby the Pages list view in the admin (or any other hierarchical post type) performs a query for id=>parent with a limit of -1 which results in priming post caches for all posts of that post type, including postmeta and terms, that aren't already in the cache, which can crash sites with an empty cache and a lot of posts/postmeta.

Trac ticket: https://core.trac.wordpress.org/ticket/59188

@kevinfodness
kevinfodness deleted the fix/page-list-cache branch December 13, 2023 16:14
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.

1 participant