This repository was archived by the owner on May 26, 2020. It is now read-only.

Description
I debug my django project these days, found every single request is calling authentication model query, could this too wasted.

Query authentication model one time

When I using my Spring Boot project I always store the token in Redis, because redis is faster than database, in django, request.user is useful, store an object is best, I think if there is a way to store authentication model in redis as the first login time, set it's alive time, maybe few hours, time ended, data gone, when a new request come, query from redis, I think this could get an higher performance, thanks!
And if there is chance, I want to add this code.