Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Cached Database Stickiness

Laravel Cached Database Stickiness Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Persists stickiness in any Laravel cache store
  • Configurable TTL for primary-read retention
  • Drops in alongside existing read/write configs
  • Octane- and queue-safe across request boundaries
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console