Browse Source

Fix task size cache TTL (#2887)

Chris Estreich 10 months ago
parent
commit
2c40224f6f
2 changed files with 6 additions and 1 deletions
  1. 5 0
      .changeset/real-flies-try.md
  2. 1 1
      src/core/task-persistence/taskMetadata.ts

+ 5 - 0
.changeset/real-flies-try.md

@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Fix task size cache TTL

+ 1 - 1
src/core/task-persistence/taskMetadata.ts

@@ -9,7 +9,7 @@ import { findLastIndex } from "../../shared/array"
 import { HistoryItem } from "../../shared/HistoryItem"
 import { getTaskDirectoryPath } from "../../shared/storagePathManager"
 
-const taskSizeCache = new NodeCache({ stdTTL: 5 * 60, checkperiod: 30 })
+const taskSizeCache = new NodeCache({ stdTTL: 30, checkperiod: 5 * 60 })
 
 export type TaskMetadataOptions = {
 	messages: ClineMessage[]