[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 2 23:16:08 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:  needs-patch     |
----------------------------+------------------------------

Comment (by wonderboymusic):

 Attached a new patch:

 1) {{{get_term_by()}}} calls are cached[[BR]]
 2) {{{term_cache_group()}}} abstracts cache bucket for terms[[BR]]
 3) {{{update_term_cache()}}} adds to cache of all 3 buckets[[BR]]
 4) {{{delete_term_cache()}}} deletes cache of all 3 buckets[[BR]]
 5) {{{get_terms()}}} calls {{{update_term_cache()}}}, deprecates the buggy
 {{{list_terms_excusions}}} in favor of {{{get_terms}}} filter[[BR]]
 6) Lots of cleanup and streamlining of {{{clean_term_cache()}}} calls

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21760#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list