[wp-trac] [WordPress Trac] #57966: High number of call to sanitize_term in wp_queue_posts_for_term_meta_lazyload

WordPress Trac noreply at wordpress.org
Fri Mar 24 15:11:43 UTC 2023


#57966: High number of call to sanitize_term in
wp_queue_posts_for_term_meta_lazyload
--------------------------+---------------------------
 Reporter:  spacedmonkey  |       Owner:  spacedmonkey
     Type:  enhancement   |      Status:  assigned
 Priority:  normal        |   Milestone:  6.3
Component:  Taxonomy      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+---------------------------

Comment (by spacedmonkey):

 There are now two PRs.

 1. [https://github.com/WordPress/wordpress-develop/pull/4246 #4246] Remove
 the use of `get_term` and replace with check the raw object that comes
 from object cache. This keeps the check for the taxonomy.

 2. [https://github.com/WordPress/wordpress-develop/pull/4259 #4259]
 Removes all checks for if the term exists or taxonomy. This may have more
 edge case issues, but it much much faster.

 I await feedback on this.

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


More information about the wp-trac mailing list