authenticated user alwayse fetch from database for each request
|Reported by:||anonymous||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
even set the SESSION_ENGINE='django.contrib.sessions.backends.cache' or cache_db, and user has login, request.user is still always need to fetch from db for each request . and user groups, permissions will also need to fetch again when use. It takes too many cpu clocks.
why not save the authenticated user in session. a little things should to do is update the user in session when user object or user permissions or groups has changed.