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

rankme_rank_cache = 1 issues. #133

Open
tk1114632 opened this issue Apr 3, 2020 · 2 comments
Open

rankme_rank_cache = 1 issues. #133

tk1114632 opened this issue Apr 3, 2020 · 2 comments

Comments

@tk1114632
Copy link

Tried to read codes but still get confused a little.

Suppose I have 2 servers (A and B) running your plugin with "rankme_cache_rank = 1", using same MySQL database.
Client X connected to Server A first, get some points, disconnected(update to MySQL), meanwhile there's no map change on Serve A, then he connects to Server B(no map change either), the client rank Server B gets is not a correct one, isn't it? Because Server B built a rank cache before Client X's points got updated. Now there's 2 issues:
a. Rank of client X in Server B is not an updated one. This is obvious I suppose.
b. If Client X get some more points in Server B and disconnect. His points in MySQL get wrongly updated, doesn't it?

Thank you in advance.

@rogeraabbccdd
Copy link
Owner

rogeraabbccdd commented Apr 5, 2020

You can disable cahce when you have multiple servers.

@tk1114632
Copy link
Author

I tried to read all codes. Found that only the rank of client could be different in the situation I described. All stats of the client are still working well. I mean, it’s not a big issue, isn’t it?

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