Skip to content

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

Merged
iMacTia merged 7 commits intomainfrom
auto-refresh-team-page
Aug 21, 2021
Merged

Automatically refresh website Team page on commit to default branch#1315
iMacTia merged 7 commits intomainfrom
auto-refresh-team-page

Conversation

@iMacTia
Copy link
Copy Markdown
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
@iMacTia iMacTia requested a review from olleolleolle August 21, 2021 08:39
Copy link
Copy Markdown
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