mpyw/laravel-cached-database-stickiness
Keeps Laravel's read/write database stickiness alive across requests by caching it. After a write, later requests are routed to the primary connection for a set period, preventing stale reads from replicas when using read/write connection splitting.
mpyw/laravel-cached-database-stickiness extends Laravel's read/write connection stickiness beyond a single request. Laravel's built-in sticky option routes reads to the write connection only within the same request; this package stores that state in the cache, so reads keep hitting the primary after a recent write—across later requests and under Laravel Octane—guarding against replication lag.
How can I help you explore Laravel packages today?