Make WordPress Core


Ignore:
Timestamp:
07/25/2022 02:51:29 AM (3 years ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.