Commit 711f426
perf: cache health check for 60s to stop hammering GitHub API
The health check was calling GitHub's verify_token_scopes on every
request (~every 5s from Render), burning through rate limits for no
reason. Now caches the result for 60 seconds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d8fc98a commit 711f426
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
| 924 | + | |
| 925 | + | |
924 | 926 | | |
925 | 927 | | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
926 | 935 | | |
927 | 936 | | |
928 | 937 | | |
| |||
955 | 964 | | |
956 | 965 | | |
957 | 966 | | |
958 | | - | |
959 | | - | |
960 | | - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
961 | 970 | | |
962 | 971 | | |
963 | 972 | | |
| |||
0 commit comments