Skip to content

Commit 5c018f3

Browse files
committed
Fix task size cache TTL
1 parent 72962b3 commit 5c018f3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/real-flies-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Fix task size cache TTL

src/core/task-persistence/taskMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { findLastIndex } from "../../shared/array"
99
import { HistoryItem } from "../../shared/HistoryItem"
1010
import { getTaskDirectoryPath } from "../../shared/storagePathManager"
1111

12-
const taskSizeCache = new NodeCache({ stdTTL: 5 * 60, checkperiod: 30 })
12+
const taskSizeCache = new NodeCache({ stdTTL: 30, checkperiod: 5 * 60 })
1313

1414
export type TaskMetadataOptions = {
1515
messages: ClineMessage[]

0 commit comments

Comments
 (0)