[wp-trac] [WordPress Trac] #46249: REST API Performance Issues: wp/v2/posts + _embed / count_user_posts()

WordPress Trac noreply at wordpress.org
Tue Jun 25 18:12:07 UTC 2019


#46249: REST API Performance Issues: wp/v2/posts + _embed / count_user_posts()
--------------------------+-----------------------------
 Reporter:  iCaleb        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  REST API      |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+-----------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => needs-patch
 * version:   => 4.7
 * milestone:  Awaiting Review => Future Release


Comment:

 I don’t think checking if it is an embedded post will work, it's too risky
 IMO.

 However, I think caching the results of `count_user_posts` is workable.
 Even if it it just per-request. Perhaps something for the Query component
 to look at as well. cc: @boonebgorges.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46249#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list