saloonphp/cache-plugin
Cache plugin for Saloon adds response caching to your API integrations, storing HTTP responses so repeated requests are served from cache instead of hitting the network. Configure cache drivers, TTLs, and per-request rules to speed up your app.
Architecture fit
clearCache() addition is the commercially interesting change. Without it, caching is a latency/cost trade paid for with staleness — a trade that product owners almost always veto. With explicit, request-free purge, the trade becomes: cache aggressively, invalidate on a known event. That converts a "should we cache?" debate into a "which events invalidate this?" design exercise, which is a far easier conversation and a far cheaper one.Integration feasibility
clearCache() (or bypass) where freshness matters. Realistically a 1–3 day ticket for a competent Laravel engineer on one endpoint, plus test coverage. That is well under any threshold where a buy/build analysis needs to be escalated.Sammyjo20/saloon-cache-plugin → saloonhttp/cache-plugin → saloonphp/cache-plugin across v1.1.0/v1.2.0 and v2.2.0/v2.3.0. No functional breakage, but it means composer constraints and lockfiles must pin exact versions and any internal documentation must reference the current namespace. Cheap to handle, embarrassing if missed during an audit.Technical risk
composer audit in CI, avoid auto-merging minor bumps in production integration, and keep a fork-ready posture. Budget roughly 0.5–1 day per quarter of a senior engineer's attention as the carrying cost.Key questions
clearCache() buys nothing.Stack fit
Migration path
Compatibility
composer.json; do not use a caret range across a major. Lockfile diffs touching saloonphp/* should be a reviewed change, not incidental.Sequencing
clearCache() to the events identified in design (post-sync, admin refresh, webhook). This is where the product value actually lands; skipping it leaves you with TTL-only caching and the staleness argument returns.Gate criteria for expanding beyond the pilot (agree these before starting, or the pilot will be judged on vibes):
Maintenance
saloonhttp/cache-plugin is now wrong. Include a doc-grep in the adoption checklist; it is a five-minute task that prevents a genuinely confusing support ticket.Support
Scaling
Failure modes
updated_at on any UI consuming cached data. If a customer-facing price is wrong, the root cause will be described as "the cache," regardless of the technical truth.Ramp-up
How can I help you explore Laravel packages today?