Opened 19 years ago

Closed 19 years ago

#1410 closed defect (fixed)

[magic-removal] request.user should lazy load

Reported by: Adrian Holovaty Owned by: Adrian Holovaty
Component: Core (Other) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As of [2423], request.user hits the database for every request, to grab the logged-in user. This should instead do lazy loading, so that the user is only looked up if request.user is accessed. Previously, this was implemented as a property.

Change History (1)

comment:1 by jkocherhans, 19 years ago

Resolution: fixed
Status: newclosed

(In [2431]) magic-removal: fixed #1410. The UserSource class will eventually be replaced with the muti-auth stuff.

Note: See TracTickets for help on using tickets.
Back to Top