[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 4 17:27:17 UTC 2012
#21760: get_term_by() calls are not cached
----------------------------------------+------------------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+------------------------------
Comment (by wonderboymusic):
Updated patch to only cache IDs for slug and name - sorry about the
whitespace, some of the term functions are esoteric and hard to read
without some daylight. I can revert those changes in a subsequent .diff
My reasoning for term_cache_group was 1) standardizing group generation 2)
flexibility in making changes in the future, only has to be done in one
place. If this is deemed unnecessary, is it to retain the old groups?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21760#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list