[wp-trac] [WordPress Trac] #37038: WP_Tax_Query needs caching

WordPress Trac noreply at wordpress.org
Mon Jun 6 19:13:33 UTC 2016


#37038: WP_Tax_Query needs caching
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.1
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 The WP_Tax_Query is a class used to extend the WP_query class (and others)
 to query the terms and return SQL statement to join object tables. However
 how it gets the term taxonomy id, performs raw sqls queries that are not
 cached.

 There are number of ways in which caching could be added to method. It
 could use get_terms to get the wp_term objects and pluck out the require
 attribute. Or a new cache could be added.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37038>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list