[wp-trac] [WordPress Trac] #18968: Remove some term cache misses
WordPress Trac
noreply at wordpress.org
Fri May 23 19:28:46 UTC 2014
#18968: Remove some term cache misses
-------------------------+-----------------------------
Reporter: johnbillion | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.0
Component: Taxonomy | Version: 3.3
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: performance
-------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"28561"]:
{{{
#!CommitTicketReference repository="" revision="28561"
In `get_terms_to_edit()`, call `get_object_term_cache()` before priming
cache with `wp_get_object_terms()`.
In `get_inline_data()`, do the same.
On list table screens with taxonomies in the admin, this dramatically
reduces the number of database queries (3x less). Even more so with a
persistent object cache (5x less).
Props johnbillion, jeffstieler, wonderboymusic.
Fixes #18968.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18968#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list