mapado/cache-info-bundle
A Symfony bundle that surfaces cache information in your app, adding a cache panel to the web debug toolbar and profiler so you can inspect cache pools, hits, misses, and stored items while debugging.
Verdict up front: this is not a dependency a TPM should approve for a Laravel product. mapado/cache-info-bundle is a Symfony FrameworkBundle extension, archived, with 1 star and 0 dependents. It has no ServiceProvider, no Laravel auto-discovery block, and no maintainer. The leverage a TPM extracts from it is decision support — a cheap reference for scoping an in-house replacement — not an integration into our stack.
Architecture fit — none for Laravel. The package hooks Symfony's HttpKernel / HttpCache / Store and registers through bundles.php. Laravel has no bundle registry and does not run the Symfony reverse proxy by default, so even a "successful" install would have no cache store to inspect. There is nothing for it to report on in our runtime.
Integration feasibility — near zero as-is; feasible only as a concept port. A Composer install will likely collide with the Symfony component versions Laravel 10/11 already pins. The reusable asset is the idea (surface HIT/MISS, cache key, TTL, Age, Cache-Control in a dev-only diagnostic) plus a small amount of header-formatting logic. The integration code is not reusable.
Technical risk — high. Archived upstream means zero security patching, zero PHP 8.2+/Laravel 10+ compatibility work, and no incident escalation path. Pulling it in creates a permanent Composer constraint liability for a single diagnostic feature. With no downstream consumers, the failure surface is entirely untested in the wild.
Key questions for the requester:
spatie/laravel-responsecache), or the Redis store?Stack fit — mismatch across every layer.
| Layer | Package assumes | Our project uses |
|---|---|---|
| Framework | Symfony 3/4-era FrameworkBundle |
Laravel (service providers, HTTP kernel) |
| Cache introspection | Symfony HttpCache\Store |
CDN / response-cache middleware / cache store |
| Registration | registerBundles() + DI extension |
composer.json auto-discovery, bootstrap/app.php |
| PHP/Symfony constraints | Legacy pins | PHP 8.x, Symfony 6/7 components |
Migration path — replace, don't port.
CacheInfoMiddleware. Laravel-native terminable middleware that reads the resolved response's cache headers and appends X-Cache-Status, X-Cache-Key, X-Cache-TTL — the same surface the bundle exposed, expressed idiomatically.appendIf(...) in bootstrap/app.php; Laravel 10: gate in Kernel::middleware on a config flag and app()->isLocal().FOSHttpCache and Symfony's own HttpCache docs are the live references there.Compatibility.
extra.laravel block → auto-discovery will register nothing.Sequencing (proposed, ~2.5 engineer-days).
Maintenance.
Support.
Scaling.
Cache-Control: no-store on responses carrying them, or restrict to internal traffic.Failure modes to plan around.
Ramp-up.
TPM recommendation: The 0.0025 score is directionally correct. Reject as a dependency; treat it as a read-once reference. If the diagnostic need is confirmed, allocate ~2 engineer-days to a Laravel-native cache-info middleware, gated to non-production, with a security sign-off on header exposure.
How can I help you explore Laravel packages today?