You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cache debug console and comprehensive testing infrastructure
This commit adds debugging tools and testing capabilities to help diagnose
and fix known cache limitations, particularly tag persistence in development mode.
New Features:
- Cache Debug Console (UI page + API endpoint)
- Interactive cache inspection interface
- Environment and cache status display
- Testing instructions and Redis CLI commands
- Quick links to all examples for testing
- Enhanced Cache Logging
- Debug logging wrapper for all cache operations
- Controlled by NEXT_PRIVATE_DEBUG_CACHE environment variable
- Traces GET/SET operations, tag revalidation, and strategy decisions
- Comprehensive Test Suite
- Added 9 new Playwright tests for cache debug console
- Now 50+ total tests covering all functionality
- Tests for API endpoints, UI interactions, and documentation
Documentation:
- TESTING_LIMITATIONS.md: Strategy for testing known issues
- Tag persistence testing workflow
- Development vs production comparison methodology
- Redis integration testing steps
- Debug logging instructions
- DEVELOPMENT.md: Local development setup guide
- Documents Turbopack module resolution issues with symlinked packages
- Provides three workaround options
- Includes debug logging instructions
- Updated EXAMPLES_TODO.md to reflect completed work
- Marked all core examples as complete
- Documented 50+ implemented tests
- Updated documentation status
Technical Changes:
- Updated module imports to use package exports
- Changed to @fortedigital/nextjs-cache-handler/... pattern
- Supports proper module resolution when published
- Added cache-debug navigation link
- Enhanced cache-handler.mjs with logging wrappers
- Updated tsconfig.json (automatic Next.js dev types)
Related to PR fortedigital#109 - addresses known limitation of tags not saving in development mode
by providing debugging tools and testing infrastructure to diagnose and fix the issue.
0 commit comments