Session 2 - MicroCache Large Entry Fix
Storage system intelligence enhancement to fix MicroCache warning spam
📋 Session 2 - MicroCache Large Entry Fix
Session ID: gspace-2.1
Date: January 7, 2026
Platform: Cursor
Status: ✅ Complete
Confidence: 98%
🎯 Session Goal
Fix the frequent console warning:
MicroCache: Entry too large for key pages: 227484 bytes (max: 102400 bytes)
📁 Session Contents
| Document | Description |
|---|---|
| MICROCACHE-FIX.md | Detailed technical documentation of the fix |
📊 Summary
Problem
Large NGXS state data (pages, widgets ~227KB) was attempting to write to MicroCache, which is designed for tiny data (< 8KB). Multiple code paths in gg-storage.ts were missing size checks.
Solution
- Created
shouldUseMicroCacheForData()helper with pre-emptive size checking - Updated all MicroCache write paths to use the helper
- Made MicroCache warning conditional on debug flag
Files Modified
libs/libs-foundational/storage-system/src/core/engine/gg-storage.tslibs/libs-foundational/storage-system/src/core/cache/micro-cache.ts
🔗 Related Sessions
- Session 1 - Docs-Angular MongoDB Integration Analysis
📚 Related Documentation
Decision ID: dev_1767824909021_g8khy4x