[wp-trac] [WordPress Trac] #57901: Only process queue in lazy loading meta api, if request id is in queue.

WordPress Trac noreply at wordpress.org
Wed Mar 29 10:48:49 UTC 2023


#57901: Only process queue in lazy loading meta api, if request id is in queue.
--------------------------------+---------------------------
 Reporter:  spacedmonkey        |       Owner:  spacedmonkey
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  6.3
Component:  Options, Meta APIs  |     Version:  4.5
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:  performance
--------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55608" 55608]:
 {{{
 #!CommitTicketReference repository="" revision="55608"
 Options, Meta APIs: Improve the lazy loading meta API to include current
 object id.

 The existing lazy loading meta api, creates a queue of ids, to be primed,
 if the `get_comment_meta` or `get_term_meta` functions are called.
 However, it did not check to see if the requested id was in the queue,
 before prime all the ids in the queue. Now, it adds the id to the queue,
 is not already in the queue, saving a cache lookup / database query.

 Props spacedmonkey, peterwilsoncc, mukesh27, flixos90.
 Fixes #57901.
 }}}

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


More information about the wp-trac mailing list