Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7451d8

Browse files
committed
docs: improve caching documentation
1 parent5c514db commitd7451d8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎readme.md‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,15 @@ You can customize the appearance of your `Stats Card` or `Repo Card` however you
172172
-`locale` - set the language in the card_(e.g. cn, de, es, etc.)_. Default:`en`.
173173
-`border_radius` - Corner rounding on the card. Default:`4.5`.
174174

175-
>**Note**
176-
>The minimumofcache_secondsiscurrently4 hoursas atemporary fix for PATs exhaustion.
175+
>**Warning**
176+
>We use caching to decrease the load on our servers (seehttps://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1271551425). Our cards have a default cacheof4 hours (14400 seconds). Also, note that the cacheisclamped to a minimum of4 hoursand amaximum of 24 hours.
177177
178178
#####Gradient in bg_color
179179

180180
You can provide multiple comma-separated values in the bg_color option to render a gradient with the following format:
181181

182182
&bg_color=DEG,COLOR1,COLOR2,COLOR3...COLOR10
183183

184-
>**Note**
185-
>Repo cards have a default cache of 4 hours (14400 seconds) if the fork count & star count is less than 1k; otherwise, it is 2 hours (7200 seconds). Also, note that the cache is clamped to a minimum of 2 hours and a maximum of 24 hours.
186-
187184
####Stats Card Exclusive Options
188185

189186
-`hide` - Hides the[specified items](#hiding-individual-stats) from stats_(Comma-separated values)_. Default:`[] (blank array)`.
@@ -411,8 +408,8 @@ By default, GitHub does not lay out the cards side by side. To do that, you can
411408
####[Check Out Step By Step Video Tutorial By@codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)
412409

413410
>**Warning**
414-
>If you are on the[hobby (i.e. free)](https://vercel.com/pricing) Vercel plan, please make sure you change the`maxDuration` parameter in the[vercel.json](https://github.com/anuraghazra/github-readme-stats/blob/master/vercel.json) file from`30` to`10` (see#1416 for more information).
415-
>
411+
>If you are on the[hobby (i.e. free)](https://vercel.com/pricing) Vercel plan, please make sure you change the`maxDuration` parameter in the[vercel.json](https://github.com/anuraghazra/github-readme-stats/blob/master/vercel.json) file from`30` to`10` (see[#1416](https://github.com/anuraghazra/github-readme-stats/issues/1416#issuecomment-950275476) for more information).
412+
416413
Since the GitHub API only allows 5k requests per hour, my`https://github-readme-stats.vercel.app/api` could possibly hit the rate limiter. If you host it on your own Vercel server, then you do not have to worry about anything. Click on the deploy button to get started!
417414

418415
>**Note**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp