[wp-trac] [WordPress Trac] #37189: In wp_term_query on cache ids

WordPress Trac noreply at wordpress.org
Wed Jun 21 04:12:01 UTC 2017


#37189: In wp_term_query on cache ids
--------------------------+--------------------------
 Reporter:  spacedmonkey  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  4.9
Component:  Taxonomy      |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+--------------------------

Comment (by boonebgorges):

 In [changeset:"40920"]:
 {{{
 #!CommitTicketReference repository="" revision="40920"
 Improve cache invalidation when splitting shared terms.

 This changeset addresses two related issues:

 * When splitting shared terms from hierarchical taxonomies, the process of
 regenerating the taxonomy hierarchy (`_get_taxonomy_hierarchy()`) requires
 recursive calls to `get_terms()` in order to descend the tree. By waiting
 until all shared terms in a term group have been invalidated before
 regenerating their taxonomy hierarchies, we avoid certain race conditions.
 * Previously, a coding error prevented single-term caches from being
 invalidated for children of split terms. This error dates from [31418].

 See #37189.
 }}}

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


More information about the wp-trac mailing list