Skip to content

Commit 00a3976

Browse files
only21milclaude
andcommitted
fix(server): keep the status origin cache TTL constant name
Keeps STATUS_ORIGIN_EXISTS_CACHE_TTL so the change does not conflict with open PRs that edit the neighboring constants. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 6aec0c2 commit 00a3976

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/vcs/GitVcsDriverCore.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const LIST_REFS_SNAPSHOT_CACHE_TTL = Duration.minutes(2);
9393
const LIST_REFS_REFRESH_COALESCE_TTL = Duration.seconds(5);
9494
const LIST_REFS_REFRESH_FAILURE_COOLDOWN = Duration.seconds(30);
9595
const STATUS_DEFAULT_BRANCH_CACHE_TTL = Duration.minutes(5);
96-
const STATUS_PRIMARY_REMOTE_EXISTS_CACHE_TTL = Duration.minutes(5);
96+
const STATUS_ORIGIN_EXISTS_CACHE_TTL = Duration.minutes(5);
9797
const STATUS_UPSTREAM_REFRESH_ENV = Object.freeze({
9898
GCM_INTERACTIVE: "never",
9999
GIT_ASKPASS: "",
@@ -1442,7 +1442,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
14421442
{
14431443
capacity: 2_048,
14441444
timeToLive: Exit.match({
1445-
onSuccess: () => STATUS_PRIMARY_REMOTE_EXISTS_CACHE_TTL,
1445+
onSuccess: () => STATUS_ORIGIN_EXISTS_CACHE_TTL,
14461446
onFailure: () => Duration.zero,
14471447
}),
14481448
},

0 commit comments

Comments
 (0)