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

WordPress Trac noreply at wordpress.org
Fri Jul 4 21:29:18 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):

 After adding entries for slug AND name in [attachment:21760.7.diff]:

 Test suite (after patch): 208,212 (-262 database calls)

 The homepage of my test install makes 6 less queries.

 Added unit tests for `get_term_by( 'name', .... )`

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


More information about the wp-trac mailing list