#5392 closed defect (bug) (fixed)
get_user_by_email() and get_user* cleanup
| Reported by: | ryan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | 2.5 |
| Severity: | normal | Keywords: | user cache |
| Cc: | Focuses: |
Description
Add a get_user_by_email() function to get a user by email address. It should use an email to user id cache to avoid DB trips. If an email address does not match a user, cache that fact. If this results in too much stuff in the cache, we can lose this part.
While we're at it. Clean up the get_user* functions. Refactor the back compat and caching code into a new private function shared by all of the get functions.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
How does this relate to the changes you requested in #4642 ? Patches there have functions get_userdatabyemail() or get_user_by(), which you requested.