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

current_user is run each time looking for current user #67

Open
evizitei opened this issue Feb 12, 2013 · 0 comments
Open

current_user is run each time looking for current user #67

evizitei opened this issue Feb 12, 2013 · 0 comments

Comments

@evizitei
Copy link
Contributor

In Quimbee we found that the current_user proc was being executed in excess of 20 times on each request to a tandem page. This wasn't a big deal if it was inexpensive, but when we introduced IP filtering, that proc introduced serious performance problems. We got around that in quimbee by using the session to set flags indicating what had already been checked, but we might consider having tandem cache the current_user information for a particular request so it only has to run the proc once in the request/response cycle.

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

1 participant