Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #15458, comment 77


Ignore:
Timestamp:
10/08/2011 04:59:52 PM (13 years ago)
Author:
ryan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15458, comment 77

    initial v1  
    1 I poked around .com, looking for get_blogs_of_user() calls that resulted in a cache miss on user meta.  All calls were for the current user and the meta cache was always hit.  A quick timer_start()/timer_stop() benchmark showed times of 0.004 for the current code and 0.008 for 15458.8.diff.  get_users_of_blog() is called 10 times on a typical .com page load for a logged in user.  So, the caching does speed things up a bit, but we're not talking about huge times or the possibility of making extra db queries without the blogs_of_user cache.
     1I poked around .com, looking for get_blogs_of_user() calls that resulted in a cache miss on user meta.  All calls were for the current user and the meta cache was always hit.  A quick timer_start()/timer_stop() benchmark showed times of 0.004 for the current code and 0.008 for 15458.8.diff.  get_blogs_of_user() ) is called 10 times on a typical .com page load for a logged in user.  So, the caching does speed things up a bit, but we're not talking about huge times or the possibility of making extra db queries without the blogs_of_user cache.