mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 14:31:42 +00:00
fix(media): retain inbound media with recursive cleanup TTL (#38292)
* Config: add media retention TTL setting * Media: recurse persisted media cleanup * Gateway: add persisted media cleanup timer * Media: harden retention cleanup sweep * Media: make recursive retention cleanup opt-in * Media: retry writes after empty-dir cleanup race
This commit is contained in:
@@ -96,7 +96,7 @@ export function attachMediaRoutes(
|
||||
|
||||
// periodic cleanup
|
||||
setInterval(() => {
|
||||
void cleanOldMedia(ttlMs);
|
||||
void cleanOldMedia(ttlMs, { recursive: false });
|
||||
}, ttlMs).unref();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user