[wp-trac] [WordPress Trac] #58116: rest_{$this->taxonomy}_query Cache Problem
WordPress Trac
noreply at wordpress.org
Wed Apr 12 04:35:29 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 spacedmonkey):
From what I can see your filter, passes two invalid params to the
get_terms call and that changed the cache before and now it does not.
As you were passing invalid params here, fixing this issue, maybe in fact
be a breaking change, as ignoring invalid params is now an expected
behaviour, for 3 releases now.
The best work around is for to change your code to pass a value to the
cache_group parameter. This is allow you to affect how data is cached.
Also note, this is not a major issue, as to see it, you have to use a
filter. Major issues are issues affects all users, where data is being
lost and a major performance issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58116#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list