[wp-trac] [WordPress Trac] #32044: is_object_in_term() leaks DB queries

WordPress Trac noreply at wordpress.org
Sat Oct 3 21:07:03 UTC 2015


#32044: is_object_in_term() leaks DB queries
------------------------------------------+-----------------------------
 Reporter:  joehoyle                      |       Owner:  boonebgorges
     Type:  defect (bug)                  |      Status:  assigned
 Priority:  normal                        |   Milestone:  Future Release
Component:  Taxonomy                      |     Version:  4.1.1
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by boonebgorges):

 In [changeset:"34811"]:
 {{{
 #!CommitTicketReference repository="" revision="34811"
 Don't prime term meta cache in `is_object_in_term()`.

 Term meta is not necessary in this case, so priming the cache wastes a
 query.

 See #10142, #32044.
 }}}

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


More information about the wp-trac mailing list