[wp-trac] [WordPress Trac] #55360: Add limit to query in WP_Tax_Query

WordPress Trac noreply at wordpress.org
Thu Mar 31 10:04:39 UTC 2022

#55360: Add limit to query in WP_Tax_Query
 Reporter:  spacedmonkey                     |       Owner:  spacedmonkey
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.0
Component:  Taxonomy                         |     Version:  4.7
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
Changes (by spacedmonkey):

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


 In [changeset:"53037" 53037]:
 #!CommitTicketReference repository="" revision="53037"
 Taxonomy: Improve performance by taxonomy queries by adding a limitting
 requested terms.

 Add a limit to the number of terms requested in taxonomy queries. This
 improves the performance of the query and the likelihood of hitting an
 existing term query cache.

 Props Spacedmonkey, peterwilsoncc, flixos90.
 Fixes #55360.

Ticket URL: <https://core.trac.wordpress.org/ticket/55360#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list