[buddypress-trac] [BuddyPress Trac] #8688: BP_Groups_Group::get_total_member_count() is highly inefficient, and runs out of memory
buddypress-trac
noreply at wordpress.org
Fri May 6 05:16:13 UTC 2022
#8688: BP_Groups_Group::get_total_member_count() is highly inefficient, and runs
out of memory
--------------------------+---------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 10.3.0
Component: Groups | Version: 10.0.0
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+---------------------
Comment (by imath):
In
[https://buddypress.trac.wordpress.org/attachment/ticket/8688/8688.2.patch
8688.2.patch], I'm introducing the `bp_groups_defer_group_members_count()`
function. It can be used before and after batch adding/removing user
to/from a group. When it's the case, the group members count will happen
only once instead of each time a user is added/removed to/from a group.
I've added a place where it's used into the plugin's code at the very
beginning of the patch.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8688#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list