You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 17c8719
Browse filesBrowse the repository at this point in the historyBrowse files
ztzhou
committed
feat(git): refresh cached refs in the background
Keep refresh work bounded and preserve active Git requests during
cancellation and eviction.
Refs: #66
Assisted-by: Codex:gpt-6.1-terra
Copy file name to clipboardExpand all lines: docs/configuration.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ Every flag has an environment-variable equivalent.
20
20
|`--auth-max-concurrent`|`GITCACHEPROXY_AUTH_MAX_CONCURRENT`|`32`| Max token-validation requests in flight; a check waits up to `--auth-timeout-seconds` for a slot, then fails with 503 (`0` = unlimited) |
21
21
|`--auth-allow-http`|`GITCACHEPROXY_AUTH_ALLOW_HTTP`|`false`| Provider modes: accept a plain `http://` validation endpoint, which sends client credentials in cleartext |
22
22
|`--fetch-ttl-seconds`|`GITCACHEPROXY_FETCH_TTL_SECONDS`|`10`| Skip upstream fetch if the last one started within this window (`0` = always fetch) |
23
+
|`--max-stale-seconds`|`GITCACHEPROXY_MAX_STALE_SECONDS`|`0`| Maximum age of cached refs served during background refresh (`0` = disabled) |
24
+
|`--max-background-fetches`|`GITCACHEPROXY_MAX_BACKGROUND_FETCHES`|`4`| Maximum concurrent background refreshes (at least `1`) |
|`--max-concurrent-upload-packs`|`GITCACHEPROXY_MAX_CONCURRENT_UPLOAD_PACKS`|`0`| Max concurrent `git upload-pack` processes, held until each exits; bounds `pack-objects` memory. Clones waiting for a slot hold a `--max-concurrent-requests` slot (`0` = unlimited) |
25
27
|`--max-decoded-body-mb`|`GITCACHEPROXY_MAX_DECODED_BODY_MB`|`512`| Cap on a decoded upload-pack request body, in MiB (bounds memory / gzip bombs) |
0 commit comments