Help save net neutrality! Learn more.
Close

#4 patch: delete $user_groups (excessive queries)

closed-accepted
nobody
None
5
2006-11-21
2006-11-21
Adam Heinz
No

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.

Discussion

  • Adam Heinz

    Adam Heinz - 2006-11-21

    patch: delete $user_groups

     
  • Anonymous - 2006-11-21
    • status: open --> closed-accepted
     
  • Anonymous - 2006-11-21

    Logged In: YES
    user_id=982006
    Originator: NO

    patch has been applied to cvs code. thanks.

     

Log in to post a comment.