flask-lastuser
flask-lastuser copied to clipboard
Use cache
Flask-Lastuser should accept a cache parameter along with init_app and use that to cache the user object instead of retrieving from the db each request.
Alternatively, it should auto-discover cache from the app's installed extensions.
Since the User object is an SQLAlchemy object, SQLAlchemy's own support for caching should be considered.