[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:49:52 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:
-------------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"40353"]:
{{{
#!CommitTicketReference repository="" revision="40353"
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.
Props mboynes.
Fixes #40306.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40306#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list