[buddypress-trac] [BuddyPress Trac] #6601: BP calls update_meta_cache() 5997 times per page load

buddypress-trac noreply at wordpress.org
Thu Aug 27 02:51:07 UTC 2015


#6601: BP calls update_meta_cache() 5997 times per page load
-----------------------------------+------------------------------
 Reporter:  wcvendors              |       Owner:  r-a-y
     Type:  defect (bug)           |      Status:  reviewing
 Priority:  high                   |   Milestone:  Awaiting Review
Component:  Component - Messaging  |     Version:  2.3.2
 Severity:  major                  |  Resolution:
 Keywords:                         |
-----------------------------------+------------------------------

Comment (by wcvendors):

 Debug Bar Results:

 5,997 Queries

 The big block of queries starts here:

 SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN
 (1699) ORDER BY umeta_id ASC

 require('wp-blog-header.php'), require_once('wp-includes/template-
 loader.php'), include('/themes/superstore-child/buddypress.php'),
 the_content, apply_filters('the_content'), call_user_func_array,
 bp_replace_the_content, apply_filters('bp_replace_the_content'),
 call_user_func_array, BP_Members_Theme_Compat->single_dummy_content,
 bp_buffer_template_part, bp_get_template_part, bp_locate_template,
 load_template, require('/themes/superstore-
 child/buddypress/members/single/home.php'), bp_get_template_part,
 bp_locate_template, load_template, require('/themes/superstore-
 child/buddypress/members/single/messages.php'), bp_get_template_part,
 bp_locate_template, load_template, require('/themes/superstore-
 child/buddypress/members/single/messages/messages-loop.php'),
 bp_ajax_querystring, apply_filters('bp_ajax_querystring'),
 call_user_func_array, bpdev_exclude_users, bpdev_get_subscriber_user_ids,
 get_users, WP_User_Query->__construct, WP_User_Query->query,
 WP_User->__construct, WP_User->init, WP_User->for_blog,
 WP_User->_init_caps, get_user_meta, get_metadata, update_meta_cache

 The only difference in the rest of the queries of course, is the user_id
 IN (XXXXXX)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6601#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list