[wp-trac] [WordPress Trac] #11423: user_nicename should get memcached

WordPress Trac noreply at wordpress.org
Sat Dec 22 08:40:47 UTC 2012


#11423: user_nicename should get memcached
-------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Optimization       |     Version:  2.9
 Severity:  normal             |  Resolution:
 Keywords:  has-patch close    |
-------------------------------+-----------------------------
Changes (by ocean90):

 * keywords:  has-patch dev-feedback needs-testing => has-patch close


Comment:

 From general-template.php:
 {{{
         // If there's an author
         if ( is_author() ) {
                 $author = get_queried_object();
                 $title = $author->display_name;
         }
 }}}

 `get_queried_object()` calls `get_userdata()` which calls `get_user_by()`.
 `get_user_by()` does the caching, see [10992].

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


More information about the wp-trac mailing list