[wp-trac] [WordPress Trac] #56037: Call update_post_parent_caches in wp_ajax_query_attachments function
WordPress Trac
noreply at wordpress.org
Fri Aug 12 00:15:35 UTC 2022
#56037: Call update_post_parent_caches in wp_ajax_query_attachments function
--------------------------------------+----------------------------
Reporter: spacedmonkey | Owner: peterwilsoncc
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.1
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses: performance
--------------------------------------+----------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"53885" 53885]:
{{{
#!CommitTicketReference repository="" revision="53885"
Media: Cache parent posts in query-attachments AJAX endpoint.
Prime the parent post objects `wp_ajax_query_attachments()` to reduce the
number of database queries in the query-attachments admin-ajax endpoint.
Props albatross10.
Fixes #56037.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56037#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list