[wp-trac] [WordPress Trac] #37189: In wp_term_query on cache ids
WordPress Trac
noreply at wordpress.org
Sun Jun 26 14:20:41 UTC 2016
#37189: In wp_term_query on cache ids
--------------------------+-----------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Keywords:
Focuses: performance |
--------------------------+-----------------------------
Currently when a wp_term_query is run with fields => 'all', an array of
the entire WP_Term objects is stored in cache. This is a bad for a number
of results. With popular object caching memcache has a limit of 1MB per
object in cache. By storing the whole term object, you might have a
descriptions on the object that long. This may mean the terms array is
unable to be stored in memcache.
Going forward we should only store the ids in cache, like the
wp_site_query and wp_comment_query.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37189>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list