[wp-trac] [WordPress Trac] #40306: Term cache isn't cleared completely when setting and removing object terms

WordPress Trac noreply at wordpress.org
Thu Mar 30 02:18:16 UTC 2017


#40306: Term cache isn't cleared completely when setting and removing object terms
--------------------------+--------------------
 Reporter:  mboynes       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7.4
Component:  Taxonomy      |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------
Changes (by boonebgorges):

 * version:  trunk => 4.7
 * milestone:  Awaiting Review => 4.7.4


Comment:

 Thanks for the patch, @mboynes. This never came up in the past, because
 term queries were never affected by term relationships. Since 4.7, when
 `wp_get_object_terms()` was refactored to use `WP_Term_Query`, the
 `terms:last_changed` incrementor started applying to object-term queries
 as well, and this bit of invalidation wasn't caught.

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


More information about the wp-trac mailing list