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

buddypress-trac noreply at wordpress.org
Wed Aug 26 22:58:58 UTC 2015

#6601: BP calls update_meta_cache() 5997 times per page load
 Reporter:  wcvendors              |      Owner:
     Type:  defect (bug)           |     Status:  new
 Priority:  high                   |  Milestone:  Awaiting Review
Component:  Component - Messaging  |    Version:  2.3.2
 Severity:  major                  |   Keywords:
 When accessing mydomain.com/members/me/messages/ the pages are loading
 slow, about 17 seconds instead of 2 seconds.

 Query Monitor shows that "update_meta_cache()" from component BuddyPress
 is running 5997 times.  That's about how many users we have on the entire

 Query being called:
 SELECT user_id, meta_key, meta_value
 FROM wp_usermeta
 WHERE user_id IN (1879)
 ORDER BY umeta_id ASC

 ....and repeats 5997 times.

 If I reload the webpage, it runs another 5997 times.  If I load an
 individual message, no problems, standard 150 queries.  It's just the
 /members/me/messages/ page.

 Thoughts?  Thanks!


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

More information about the buddypress-trac mailing list