Download & Extend

Biblio Module Slowing Down LDAP Authentication

Project:Bibliography Module
Version:6.x-1.15
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

We are seeing login delays of approximately 12 seconds on our site. I have tracked it down to the this piece of code in biblio.module

if ($type == 'after_update' && $category == 'account') {
menu_rebuild();
}

menu_rebuild() is being executed for every user login, it appears this is not necessary and is causing the long delay in the login process.

Comments

#1

You can comment that out without any major repercussions. I've reworked that in in later versions so that it only gets called if it REALLY needs to (i.e. the biblio menu related setting is changed). I'll try to work that into the 6.x-1.x code as well.

#2

I can confirm this bug. We had three different sites using ldap authentication, and login had nearly 30 secs of delay!

Commenting out these lines reduced significantly login time.

#3

yeah happened to us too. is there any proper fix rather than commenting out the function? its been more than a year. i hope there are no side effects in commenting out the functions.

#4

i hope there are no side effects in commenting out the functions.

from the maintainer in comment #1

You can comment that out without any major repercussions.

nobody click here