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

Automatically refresh website Team page on commit to default branch #1315

Merged
merged 7 commits into from
Aug 21, 2021

Conversation

iMacTia
Copy link
Member

@iMacTia iMacTia commented Aug 21, 2021

Description

According to the doc, the stats endpoint is quite heavy and it's content is cached.
We rely on this endpoint to render our team page, however the cache is invalidated after each commit to main and it takes several minutes to rebuild it.
This process is only kicked off on the first visit to the team page, rendering it unavailable for some users.

Solution, as part of our CI build, only in case of a push to main, we should make an API call to trigger the cache rebuild.
This will increase the chances of the cache being available when someone visits the team page.

@iMacTia iMacTia self-assigned this Aug 21, 2021
Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Looks very clear on a first read.

@iMacTia iMacTia merged commit dd1552f into main Aug 21, 2021
@iMacTia iMacTia deleted the auto-refresh-team-page branch August 21, 2021 09:27
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