myCRED_Query_Leaderboard->get_results() is SLOW
-
It’s almost taking a full second for this query to run:
SELECT wp_users.ID, wp_users.user_login, wp_users.display_name, wp_users.user_email, wp_users.user_nicename, wp_users.user_url, wp_usermeta.meta_value AS cred FROM wp_users LEFT JOIN wp_usermeta ON wp_users.ID = wp_usermeta.user_id AND wp_usermeta.meta_key = 'mycred_default' WHERE wp_usermeta.meta_value > 0 ORDER BY wp_usermeta.meta_value+1 DESC ;
I have almost 400 members so that’s not a big surprise I suppose, BUT why does this query run on every page? I am not using the leaderboard widget anywhere yet it insist on running this long query even on my homepage.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘myCRED_Query_Leaderboard->get_results() is SLOW’ is closed to new replies.