Skip to content

Conversation

@pushpak1300
Copy link
Member

When the configured cache driver is unreachable (e.g. database driver with PostgreSQL down, Redis connection refused), Boost throws unhandled exceptions like QueryException. This crashes boost:install, DatabaseSchema, and LastError MCP tools — none of which actually require cache to function.

Solution

Wrapped all cache operations in Laravel's rescue() helper with report: false. Each call site has a natural fallback:

  • BoostServiceProvider — cache miss triggers fresh Roster::scan(), failed write is skipped
  • DatabaseSchema — falls back to direct getDatabaseStructure() call
  • LastError — falls back to reading the log file on disk

Added tests to verify LastError and DatabaseSchema degrade gracefully when cache fails.

@pushpak1300 pushpak1300 merged commit 1c7d6f4 into main Feb 6, 2026
16 checks passed
@pushpak1300 pushpak1300 deleted the cache_fail_issue branch February 6, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants