# perf\(server\): cache repository identities past the sweep interval · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/8ddd79e1fbe72cfe2631d3105673d0fb251b9950)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 8ddd79e1fbe72cfe2631d3105673d0fb251b9950

Requested commit: 8ddd79e1fbe72cfe2631d3105673d0fb251b9950

Commit: 8ddd79e1fbe72cfe2631d3105673d0fb251b9950

Tree: e66daf3c57bbb07efc14a13fdbca188d3abd4f4d

Author: Claude

Committer: Claude

## Message

```
perf(server): cache repository identities past the sweep interval

The settlement and pull request sweeps resolve every project each minute,
but repository identities expired after one minute and non-git roots were
never cached, so each sweep respawned git for every project.

Raise the positive TTL to 10 minutes and the negative TTL to 5 minutes, and
cache git's "not a git repository" verdict for root lookups. Timeouts and
other root lookup failures still retry immediately. Callers that know the
repository changed already pass `refresh: true`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WvDgDwRRG8xvtoABQ8KwtC

```

## Parents

- [ed809f7ad274ebccdfbf029ccfd7ff2582fd486a](https://git.cafe/pingdotgg/t3code/commit/ed809f7ad274ebccdfbf029ccfd7ff2582fd486a?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/8ddd79e1fbe72cfe2631d3105673d0fb251b9950?format=markdown)
