[wp-trac] [WordPress Trac] #56272: REST API: Prime post caches in comments in endpoint.
WordPress Trac
noreply at wordpress.org
Mon Jul 25 02:51:43 UTC 2022
#56272: REST API: Prime post caches in comments in endpoint.
------------------------------+----------------------------
Reporter: spacedmonkey | Owner: peterwilsoncc
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.1
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: performance
------------------------------+----------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"53772" 53772]:
{{{
#!CommitTicketReference repository="" revision="53772"
REST API: Prime post caches in comments endpoint.
Prevent each call to `get_post()` triggering a seperate database query by
priming the cache of each comment's post in
the REST API's comments endpoint.
Props spacedmonkey, timothyblynjacobs.
Fixes #56272.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56272#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list