Closed Bug 1033047 Opened 10 years ago Closed 10 years ago

Cache user query in auth backend

Categories

(Webtools Graveyard :: Air Mozilla, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

Details

We're using the `django_browserid.auth.BrowserIDBackend` AUTHENTICATION_BACKEND which has a function called `get_user()` which, given a user ID, returns the User instance of that. 

This can be cached which means for heavily cached views it means we no longer need any database queries at all.
Just failed to put in the bug number in the commit message. 
https://github.com/mozilla/airmozilla/commit/a71978a05331fdaf7629b996c4f00d4e1e5a5e4e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → peterbe
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.