[wp-trac] [WordPress Trac] #36814: get_the_terms() caches term count property
WordPress Trac
noreply at wordpress.org
Mon May 30 04:10:20 UTC 2016
#36814: get_the_terms() caches term count property
-------------------------------------+---------------------------
Reporter: ocean90 | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"37593"]:
{{{
#!CommitTicketReference repository="" revision="37593"
Don't clear object relationship caches on term update.
Since [37573], object relationship caches (`{$taxonomy}_relationships`)
contain term IDs rather than term objects. See #36814. As such, it's no
longer
necessary to clear these caches when a term is updated; none of the data
that's
changed on update (name, description, count, etc) is stored in the
relationship
cache.
Fixes #36251.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36814#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list