[wp-trac] [WordPress Trac] #55352: Improve cache key generation in WP_Term_Query

WordPress Trac noreply at wordpress.org
Fri Apr 29 12:34:51 UTC 2022


#55352: Improve cache key generation in WP_Term_Query
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.0
Component:  Taxonomy                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-dev-    |     Focuses:
  note                                           |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 In [changeset:"53309" 53309]:
 {{{
 #!CommitTicketReference repository="" revision="53309"
 Taxonomy: Increase cache hits in `WP_Term_Query` when using include and
 exclude parameters.

 Ensure that empty values of include and exclude passed to the parameters
 of `WP_Term_Query`, reused existing caches by
 resetting values to an empty array.

 Props Spacedmonkey, peterwilsoncc, hellofromtonya.
 Follow-up to [52970].
 See #55352.
 }}}

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


More information about the wp-trac mailing list