[buddypress-trac] [BuddyPress Trac] #5950: Editing Pages / Posts in wp-admin creates 50, 000 SQL Queries
buddypress-trac
noreply at wordpress.org
Mon Oct 13 21:41:31 UTC 2014
#5950: Editing Pages / Posts in wp-admin creates 50,000 SQL Queries
------------------------------------+------------------
Reporter: wcvendors | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.2
Component: Activity | Version: 2.1
Severity: critical | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------
Comment (by imath):
Replying to [comment:3 DJPaul]:
>
> I think we need something like `wp_is_large_network`
I suggest to use {{{ friends_get_total_friend_count( $user_id ) }}} in
5950.02.patch i put the limit at 100 friends, but we can increase this
limit.
> We can use `$user->display_name` instead of
`bp_core_get_user_displayname(...)` if the xprofile sync is enabled (`!
bp_disable_profile_sync() )`. This seems like a great improvement.
I use `$user->display_name`, if not set fallback to
`bp_core_get_user_displayname(...)`
r-a-y, thanks for your feedback, you're right, the
[https://gist.github.com/imath/ae2953c1e19a7fc0954f gist] i shared with
wcvendors was suggesting to disallow mentions scripts if on WP Admin till
we fix this. I'm not sure we need to check for groups administration as
filtering {{{bp_activity_maybe_load_mentions_scripts}}} to false in WP
Admin shouldn't have an impact on the "add member auto-complete" feature.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5950#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list