[wp-trac] [WordPress Trac] #58116: rest_{$this->taxonomy}_query Cache Problem
WordPress Trac
noreply at wordpress.org
Wed Apr 12 12:24:41 UTC 2023
#58116: rest_{$this->taxonomy}_query Cache Problem
--------------------------+------------------------------------
Reporter: tnolte | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 6.0
Severity: normal | Resolution:
Keywords: | Focuses: rest-api, performance
--------------------------+------------------------------------
Comment (by tnolte):
So, I took a look at the documentation for this and while it doesn't list
the `post_type` as a supported method argument I went looking to see if we
had additional code leveraging hooks in `get_terms`. What I did find is
that we have do in fact leverage the `terms_clauses` hook in correlation
to this. It is in that hook where the `post_type` parameter is being
checked for and we are apparently modifying the query to do this
filtering.
So the issue still remains though that there is still an inconsistency
with the handling of the code. When object caching is involved in
WordPress >=5.9.x those 2 hooks are being accounted for and returned as
expected pre & post object caching. However, starting in 6.0+ that is no
longer the case. The changes starting in WordPress 6.0 are actually the
breaking change incorrectly handling those hooks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58116#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list