jacyimp/api-platform-operation-cache
jacyimp/api-platform-operation-cache adds operation-level caching for API Platform in Laravel/PHP applications. Cache expensive or frequently requested operations to reduce latency, lower backend load, and improve API performance and scalability with simple configuration.
product:*), and global (*) invalidation covers most "purge by entity/collection" requirements, letting us defer a bespoke cache-coordination service by at least one or two cycles.OperationCache metadata replace code we would otherwise own and maintain across Laravel and Symfony services.use_symfony_listeners reduces per-service configuration drift, supporting a single caching convention across polyglot PHP estates.0.2.0) means API churn is a planning assumption, not an edge case. This informs pinning policy and upgrade budgeting.Adopt when:
Look elsewhere when:
For executives: This package raises cache hit rates and makes purges precise, which lowers infrastructure spend and reduces stale-content incidents that cost conversions and support time. It is open source, so cost is integration effort rather than license. The main risk is maturity — it is pre-1.0 with a fast-moving API — so we propose a pinned-version pilot with measurable success criteria before broader rollout.
For engineering: Generation-based invalidation with exact, prefix, and global purges removes hand-rolled cache-busting code, and the imperative API plus conditional/dynamic operation invalidation covers cases we currently special-case. PSR-14 events wire directly into existing metrics and tracing. The Symfony flag removal simplifies configuration. Recommend a scoped pilot: pin the version, instrument hit ratio and purge latency, document cache-key conventions, and reassess at 1.0 or on the first breaking change.
How can I help you explore Laravel packages today?