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

fix: repetitive requests on forum frontend #11

Merged
merged 3 commits into from
Jul 11, 2022

Conversation

SychO9
Copy link
Contributor

@SychO9 SychO9 commented Jun 3, 2022

Changes proposed in this pull request:
Fixes multiple logging of the requests directed to the forum frontend making debugging difficult.

Reviewers should focus on:
This was happening because when loading the forum page flarum runs inner API requests using its API client to get the list of discussions for example, and the clockwork middleware was running multiple times due to that.

Screenshot

Before After
Screenshot from 2022-06-03 11-42-31 Screenshot from 2022-06-03 11-42-59

@SychO9
Copy link
Contributor Author

SychO9 commented Jul 11, 2022

@davwheat apologies 🙏🏼 allow me to annoy you into reviewing/merging this 👀, it'll be really needed if the user decides to use clockwork: https://discuss.flarum.org/d/30913-huge-performance-problem-refreshing-takes-20sec-or-longer

Copy link
Member

@davwheat davwheat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh god no, don't complain. I should have done this WEEKS ago! 🙈

All seems good :)

@davwheat davwheat merged commit 8c75555 into FriendsOfFlarum:master Jul 11, 2022
@SychO9 SychO9 deleted the sm/repetitive-requests branch July 11, 2022 08:47
@davwheat
Copy link
Member

Release 1.0.1 :)

@davwheat davwheat self-assigned this Jul 11, 2022
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

Successfully merging this pull request may close these issues.

2 participants