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

Set a higher default cacheLength on rating/star category #7587

Merged
merged 2 commits into from
Feb 10, 2022

Conversation

chris48s
Copy link
Member

One of the things to come out of #7584 is that rating and star badges don't have any explicit cacheLength set on them so they just use the default (120 sec). I've never bothered setting one because we serve so few of these in the grand scheme of things. In terms of the way we characterise badges based on how often we expect the values to change and how precise the values need to be, it is probably most sensible to think of these in the same bucket as a download counts.
I don't expect this to make much difference to our performance/load because they make up such a small proportion of our traffic, but it will reduce the amount of traffic on upstream APIs a bit.

@chris48s chris48s added the core Server, BaseService, GitHub auth label Feb 10, 2022
@shields-ci
Copy link

shields-ci commented Feb 10, 2022

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against a539940

@PyvesB
Copy link
Member

PyvesB commented Feb 10, 2022

they make up such a small proportion of our traffic

For those who were wondering, it's about 1.1% of our served badges according to metrics.shields.io.

@repo-ranger repo-ranger bot merged commit ace5e03 into badges:master Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants