electivegroup/cache-bundle
Symfony bundle that adds cache routes and services via simple config imports, with cache subscriptions defined in your env file for flexible, environment-specific cache invalidation.
CACHE_SUBSCRIPTIONS list from the environment to drive cache invalidation. That is a configuration convention, not a platform. A first-party implementation in Laravel is a config file plus a listener/observer registration — days, not weeks.-acl-api-organisation-updated-candidates-api) suggests an event-bus-style consumer where cache keys are tied to upstream resource-change events. Useful as a reference design when we scope invalidation for shared/reference data that changes outside our application.routes.yaml, services.yaml, and @ElectiveCacheBundle/Resources/config/... resource imports are Symfony container semantics. For a Laravel codebase this is not an adoption decision at all; it's a "do not pursue" on framework grounds unless we deliberately bridge or fork it.Consider it only if all of the following hold:
*-updated-* events are ones you consume.Look elsewhere — or build in-house — when:
config()-driven per-environment behavior. Bridging Symfony service definitions into Laravel is more work than writing the equivalent from scratch.opportunity: 6.59 is a signal of a gap in the market, not evidence this package closes it.To executives: This package is not a candidate for adoption. It is a small, undocumented Symfony bundle from a single vendor with no community, no dependents, and no release cadence — and it targets the wrong framework for our stack. The good news is that it is also cheap to replicate: the only idea with real value is a declarative, environment-driven list of "what changed upstream, so invalidate this cache." I recommend we adopt that pattern internally rather than the dependency, at an estimated cost of one to two sprints inside the existing caching workstream. That gives us the same capability with full ownership, no supply-chain exposure, and no framework mismatch.
To engineering: Treat the repository as a design reference, not a library. Specifically, borrow the convention of enumerating cache subscriptions in environment configuration so staging and production can diverge without code changes, and so invalidation scope is auditable in one place. In Laravel this lands as a config array consumed by event listeners or model observers, with tagged cache stores for scoped busting. Before committing, we would need to answer three questions the README does not: what exactly the upstream event payload looks like, how subscription names map to cache keys, and what happens when an invalidation is missed or duplicated. Until those are answered, the package carries stale-data risk in exactly the area — permissions and organisation scope — where staleness is most expensive.
How can I help you explore Laravel packages today?