[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 8 16:55:51 UTC 2011
#15458: Lazy-load usermeta into the user object
----------------------------------------+-----------------------
Reporter: nacin | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.3
Component: Performance | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+-----------------------
Comment (by ryan):
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15458#comment:77>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list