ghostcompiler/laravel-model-caching
Automatically caches Eloquent model queries and invalidates them whenever a model is created, updated, or deleted, so repeated database reads are served from cache. A drop-in trait for Laravel models with minimal configuration and no code changes required.
ghostcompiler/laravel-model-caching adds transparent query caching to Laravel Eloquent models, reducing repeated database work without changing how you query your models. It hooks into model events to automatically invalidate cached results when records are created, updated, or deleted, keeping reads fast and data fresh.
How can I help you explore Laravel packages today?