[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 16:55:44 UTC 2017
#40306: Term cache isn't cleared completely when setting and removing object terms
-------------------------------+---------------------------
Reporter: mboynes | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7.4
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: reporter-feedback | Focuses:
-------------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"40354"]:
{{{
#!CommitTicketReference repository="" revision="40354"
Invalidate term query caches when setting or deleting term relationships.
Prior to 4.7, term relationships - as set by `wp_set_object_terms()` or
`wp_remove_object_terms()` - did not affect the term query cache. The
introduction of the 'object_ids' parameter in 4.7 means that the query
cache must be aware of object-term relationships. As such, the
'last_changed' incrementor is now invalidated when term relationships
are modified.
This bug only reared its head when delaying term counting, because term
counting performs its own term query cache invalidation.
Merges [40353] to the 4.7 branch.
Props mboynes.
Fixes #40306.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40306#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list