flask-lastuser icon indicating copy to clipboard operation
flask-lastuser copied to clipboard

Use cache

Open jace opened this issue 11 years ago • 0 comments

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.

jace avatar Sep 04 '13 08:09 jace