Django auth context processor: not to query for user for each request
Hi, I enabled django auth middleware, so now I have a user variable
in my request context. In this case for each page request user object
is queried from the database. Is it possible to set up this middleware
to use a cached user object (for example, put by me in session)? User
objects are not updated frequently, so I don't need to have an extra
DB query for each page. Thanks.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home