craftcms/laravel-dependency-aware-cache
Laravel cache layer inspired by Craft CMS that tracks dependencies between cached items. Invalidate related keys automatically when a dependency changes, reducing manual cache busting and keeping derived data consistent across your app.
remember()) where dependencies are trivial.For Executives: "This package lets us cache dynamic data intelligently—invalidating only what changes (e.g., a user’s dashboard) instead of flushing entire caches. For example, in our e-commerce platform, it could cut cache rebuilds by 60% during peak traffic, improving response times without extra infrastructure costs. It’s a low-risk, high-reward way to optimize performance for data-heavy features, aligning with our scalability goals."
For Engineering:
*"This replaces ad-hoc cache invalidation (e.g., Cache::forget() with tags) with a dependency-aware system. Key benefits:
cache()->remember('user_'.$id, ...) with auto-invalidation).Cache facade and supports drivers like Redis/APCu.
Tradeoff: Adds ~5ms overhead per cache operation (negligible for most use cases). Let’s pilot it on the [high-traffic feature X] to measure impact."*How can I help you explore Laravel packages today?