[wp-trac] [WordPress Trac] #58116: rest_{$this->taxonomy}_query Cache Problem
WordPress Trac
noreply at wordpress.org
Mon Sep 11 11:36:15 UTC 2023
#58116: rest_{$this->taxonomy}_query Cache Problem
--------------------------------------+------------------------------------
Reporter: tnolte | Owner: spacedmonkey
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.4
Component: Taxonomy | Version: 6.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: rest-api, performance
--------------------------------------+------------------------------------
Changes (by spacedmonkey):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"56555" 56555]:
{{{
#!CommitTicketReference repository="" revision="56555"
Taxonomy: Cache term objects in WP_Term_Query if query is filtered.
When utilizing the `terms_clauses` or `get_terms_fields` filters within
`WP_Term_Query` and the selected fields are modified, the entire term
object is now cached. This adjustment is necessary because filters can
broaden the selected fields beyond just the term ID. Fields linked to the
term object, such as the count or parent, may undergo modifications when
queried. Caching the complete object ensures the accurate storage of these
modified fields within the cache.
Props spacedmonkey, tnolte, peterwilsoncc.
Fixes #58116.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58116#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list