The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
perf(server): keep workspace cache versions live for 10 minutes before packing (#27149)
Charles Bochet7853f42e1b48
diff --git a/packages/twenty-server/src/engine/workspace-cache/services/workspace-cache.service.ts b/packages/twenty-server/src/engine/workspace-cache/services/workspace-cache.service.tsindex d22cbe5e0b0..535b72d0ec8 100644--- a/packages/twenty-server/src/engine/workspace-cache/services/workspace-cache.service.ts+++ b/packages/twenty-server/src/engine/workspace-cache/services/workspace-cache.service.ts@@ -63,7 +63,7 @@ const LOCAL_ENTRY_TTL_MS = 30 * 60 * 1000;const LOCAL_CACHE_SWEEP_INTERVAL_MS = 60 * 1000;const PACKING_INTERVAL_MS = 500;const PACKING_PONDERATION_BUDGET = 64;-const MIN_IDLE_BEFORE_PACKING_MS = 60 * 1000;+const MIN_IDLE_BEFORE_PACKING_MS = 10 * 60 * 1000;// Per-cache-key entry caps; ORM graphs are ~5 MB eachconst MAX_LOCAL_ENTRIES_BY_KEY_NAME = new Map<string, number>([['ORMEntityMetadatas', 128],