This patch deletes the initialization of the unused $user_groups variable in kernel/module_inc.php. This got rid of nearly two thousand unnecessary database queries per page load for us -- we have a lot of groups.
This patch is against what appears to be a local fork of the 1.0.4 beta, but it looks like the relevant file is unchanged in CVS. I generated the patch from our local copy in Perforce, so the file markings at the top of the patch are incorrect.
Log in to post a comment.