Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this, retrieving user information required 1 LDAP search each time a user was referenced on a page (possibly 2 if Mantis is configured to show the realname). This could have a significant performance impact when displaying pages containing a large number of users (e.g. viewing an Issue having a long history, as described in issue #26600). Implement a new ldap_cache_user_data() function to retrieve all needed LDAP attributes in a single search, and cache them. This way, we only need to query the LDAP server once per user, subsequent calls only need to access the cache which drastically improves performance. Fixes #26622, #26600
- Loading branch information
Showing
1 changed file
with
65 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters