[wp-trac] [WordPress Trac] #55352: Improve cache key generation in WP_Term_Query
WordPress Trac
noreply at wordpress.org
Mon Mar 21 03:53:48 UTC 2022
#55352: Improve cache key generation in WP_Term_Query
--------------------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.0
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+---------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"52970" 52970]:
{{{
#!CommitTicketReference repository="" revision="52970"
Taxonomy: Increase cache hits in `WP_Term_Query`.
Increase the number of cache hits in `WP_Term_Query` by normalizing data
included in the cache key.
Arguments that do not affect the SQL query, eg `update_term_meta_cache`,
are removed from cache key generation. Arguments that are accepted in
multiple formats, eg a string and an array, are normalized for both the
cache key and the SQL query.
Props spacedmonkey.
Fixes #55352.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55352#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list