[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
Mon Mar 20 10:53:03 UTC 2023


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

Comment (by spacedmonkey):

 @peterwilsoncc Not sure what you mean here. The goal of this change.

 If the term id is not a list of id to prime in cache, do not bother to
 prime them. If you load a single term meta for one id that is not in the
 queue to prime, then it may load data is very uses.

 Take the following example.

 {{{#!php
 get_term_meta( 999999 );
 }}}

 If 999999, you may load other term meta for now reason. See attached
 screenshots.

 Another solution to this problem, is dynamically adding the missing id to
 the queue, but again, this may result in loading data that is not needed.

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


More information about the wp-trac mailing list