5
Another thing worth trying is this:
$members =& $member_handler->getUsersByGroup($groupid, false);
$user_list = array_merge($members, $user_list);
around line 66 in modules/system/admin/mailusers/mailusers.php
instead of the old
$members =& $member_handler->getUsersByGroup($groupid, true);
// RMV: changed this because makes more sense to me
// if options all grouped by 'AND', not 'OR'
foreach ($members as $member) {
if (!in_array($member->getVar('uid'), $user_list)) {
$user_list[] = $member->getVar('uid');
}
}
I haven't tested this, yet, but it should reduce the resource-intensivity when fetching users