Fix task size cache TTL (#2887)

This commit is contained in:
Chris Estreich 2025-04-23 12:20:13 -07:00 committed by GitHub
parent 72962b3c76
commit 2c40224f6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -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[]