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

  1. Created shouldUseMicroCacheForData() helper with pre-emptive size checking
  2. Updated all MicroCache write paths to use the helper
  3. Made MicroCache warning conditional on debug flag

Files Modified


🔗 Related Sessions


📚 Related Documentation


Decision ID: dev_1767824909021_g8khy4x