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

Increase time interval of has-new-messages requests #1524

Closed
willemarcel opened this issue Apr 26, 2019 · 2 comments
Closed

Increase time interval of has-new-messages requests #1524

willemarcel opened this issue Apr 26, 2019 · 2 comments

Comments

@willemarcel
Copy link
Contributor

Currently the frontend makes a new request to /api/v1/messages/has-new-messages each 10 seconds.

Although it's a request that returns a tiny amount of data as response, I believe we don't need to fetch it so frequently and it would help reduce the load on the server. I suggest to increase the interval to 1 or 2 minutes.

Interval function is at

@willemarcel willemarcel changed the title Increase time interval of has-new-message requests Increase time interval of has-new-messages requests Apr 26, 2019
@uwaiszaki
Copy link
Contributor

uwaiszaki commented Apr 27, 2019

@willemarcel @xamanu Please review my pr #1525

@xamanu
Copy link
Contributor

xamanu commented May 9, 2019

Thanks @uwaiszaki and @willemarcel. The PR went in. Closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants