Files
OmniRoute/tests
oyi77 438bfc83cf perf(cache): replace connectionsCache with rawConnectionsCache + shared lazyConnectionView
Phase 2a: extract lazy connection view into shared module
- Move createLazyConnectionView, toProviderConnection, ProviderConnectionView
  from sse/services/auth.ts to src/lib/db/providers/lazyConnectionView.ts
- Update auth.ts to import from the shared location
- Update catalog.ts to use getCachedRawProviderConnections + createLazyConnectionView

Phase 3: delegate getCachedProviderConnections through raw cache
- getCachedProviderConnections now delegates to getProviderConnections
  which calls getCachedRawProviderConnections (single source of truth)
- Add LRU eviction (maxSize param) to TTLCache to prevent memory leaks
- rawConnectionsCache limited to 500 entries, connectionByIdCache to 10K
- Provider metadata (combo/catalog) caches get dedicated invalidation scopes
- Fix deleteProviderConnectionsByProvider: add missing invalidateDbCache call

Phase 4: fix test isolation + dead code audit
- db-read-cache.test.ts: use real module import (not importFresh) so
  invalidateDbCache reaches the same rawConnectionsCache instance
- Verified: no stale connectionsCache references, clean barrel exports
2026-07-20 02:15:52 +07:00
..
2026-05-23 01:46:59 -03:00
2026-07-13 09:12:40 -03:00
2026-07-02 10:47:13 -03:00
2026-06-19 06:49:01 -03:00
2026-07-06 02:25:17 -03:00
2026-07-13 09:12:40 -03:00
2026-07-13 09:12:40 -03:00
2026-06-13 17:27:40 -03:00