In a quest to get more performance out of LDAP using sites I am running into search queries resulting from non-LDAP users being used.
If you login with a non-LDAP user on every request the user is looked up. This results in a LDAP search query for that userid (via acl_users.validate() -> authenticateCredentials -> LDAP getUser -> LDAP user search). If that user is not in LDAP this will be not be cached.
Would you be averse to a modification that caches negative search results here?
|