github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

Stats are not updating.

Open sijirama opened this issue 2 years ago • 1 comments

Describe the bug

my stats refuse to get updated, such as commit count.

Expected behaviour

No response

Screenshots / Live demo link

No response

Additional context

No response

sijirama avatar Jan 14 '23 23:01 sijirama

Change the src url from "https://github-readme-stats.vercel.app" to "https://github-readme-stats-ruby-one.vercel.app"

himanshu-dxm avatar Jan 15 '23 14:01 himanshu-dxm

found the solution: changing the theme will update the stats

moemnml33 avatar May 10 '24 03:05 moemnml33

found the solution: changing the theme will update the stats

Hey @moemnml33

Changing theme works because any changes in URL query string parameters breaking the cache, but after that the card will be cached againg. You don't want to change theme each time to update stats, right? Therefore it is not a solution.

The default cache time on our public deployment is 6 hours. We use caching to decrease consumption of GitHub API tokens points in order to avoid public deployment downtimes. This measure is neccesary because GitHub API tokens limited by 5000 points per hour. If you want your card to be updated more often you can deploy your own Vercel instance using your own GitHub API token and set there any cache time using CACHE_SECONDS environment variable. That would be best solution.

qwerty541 avatar May 10 '24 19:05 qwerty541