Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cache #11

Open
jace opened this issue Sep 4, 2013 · 0 comments
Open

Use cache #11

jace opened this issue Sep 4, 2013 · 0 comments
Assignees

Comments

@jace
Copy link
Member

jace commented Sep 4, 2013

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.

@ghost ghost assigned kracekumar Sep 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants