[wp-trac] [WordPress Trac] #18968: Remove some term cache misses

WordPress Trac noreply at wordpress.org
Fri May 23 19:16:57 UTC 2014


#18968: Remove some term cache misses
-------------------------+--------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Taxonomy     |     Version:  3.3
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  performance
-------------------------+--------------------------

Comment (by wonderboymusic):

 *Testing of Posts list table:*

 Without patch, non-persistent:
 DB: 61
 CACHE: 1621

 Without patch, with Memcached:
 DB: 49
 CACHE: 1602

 With patch, non-persistent:

 DB: 21
 CACHE: 1701

 With patch, with Memcached:
 DB: 9
 CACHE: 1682

 *With the check for cache in `get_terms_to_edit()`:*

 non-persistent:
 DB: 41
 CACHE: 1641

 with Memcached:
 DB: 29
 CACHE: 1622

 *An alternate approach in get_terms_to_edit() - basically the
 `get_the_terms()` cache logic that doesn't hit a filter:*

 non-persistent:
 DB: 21
 CACHE: 1681

 with Memcached:
 DB: 9
 CACHE: 1662

 Ding ding ding!

 *Without the call to `get_the_terms()` for hierarchical*

 Non-persistent:
 DB: 41
 CACHE: 1641

 Memcached:
 DB: 29
 CACHE: 1622

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


More information about the wp-trac mailing list