[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached
WordPress Trac
noreply at wordpress.org
Wed Sep 28 19:44:31 UTC 2016
#21760: get_term_by() calls are not cached
----------------------------------------+--------------------------
Reporter: wonderboymusic | Owner: ocean90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: performance
----------------------------------------+--------------------------
Comment (by johnjamesjacoby):
21760.6.patch uses `'get' => 'all'` for a few reasons:
* Will return terms without posts
* Ignores the term hierarchy entirely (both parents & children)
* Never pads counts, preventing unintended calls to `_pad_term_counts()`
These will bring back the `LIMIT` query clause lost in .5.patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21760#comment:99>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list