[wp-trac] [WordPress Trac] #57298: Remove placeholder from `WP_Term_Query` cache key
WordPress Trac
noreply at wordpress.org
Wed Jan 18 09:57:10 UTC 2023
#57298: Remove placeholder from `WP_Term_Query` cache key
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| spacedmonkey
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Taxonomy | Version: 4.6
Severity: normal | Resolution: fixed
Keywords: has-unit-tests has-patch needs-dev- | Focuses:
note commit | performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"55083" 55083]:
{{{
#!CommitTicketReference repository="" revision="55083"
Taxonomy: Remove placeholder from `WP_Term_Query` cache key.
Remove escape placeholder from query cache key, as placeholders are on a
based on a unique id on every request. This meant that it is impossible
for a cache to be reused, making queries that use escape placeholders such
as searches, meta queries or using the `description__like` / `name__like`
parameters were unable to be cached.
Follow on from [54634].
Props spacedmonkey, peterwilsoncc.
Fixes #57298.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57298#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list