[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 4 16:26:44 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 the patch - the problem was a {{{$wpdb->prepare}}} thing in the IN
query in {{{clean_term_cache()}}}. All tests pass now.
WITH ONE CAVEAT:
{{{tests-posts-tax-cache-group.diff}}} needs to be applied to Unit Tests
so that the Post tests read from the proper term cache group
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21760#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list