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

Conditional use based on logged-in user? #11

Open
inspire22 opened this issue Jun 19, 2013 · 0 comments
Open

Conditional use based on logged-in user? #11

inspire22 opened this issue Jun 19, 2013 · 0 comments

Comments

@inspire22
Copy link

Since there's a (small) delay between slave servers and master ones, when a user updates an item, I'd like to show that result from the master database.

Is there any way to enable or disable this module on a per-request basis?

Looking at the code I see Thread.current[:read_from_slave], but aren't sure that setting this to false will skip it for this request...

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