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

WordPress Trac noreply at wordpress.org
Fri Jul 4 21:10:05 UTC 2014


#21760: get_term_by() calls are not cached
----------------------------+-----------------------------
 Reporter:  wonderboymusic  |       Owner:  wonderboymusic
     Type:  enhancement     |      Status:  assigned
 Priority:  normal          |   Milestone:  4.0
Component:  Taxonomy        |     Version:  2.3
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------

Comment (by wonderboymusic):

 [attachment:21760.6.diff] is a simpler approach and passively invalidates
 slugs via an increment on the bucket. In my previous attempts,
 `clean_term_cache()` ended up producing 1000-2000 more database queries
 when running the entire test suite. No bueno.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21760#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list