miradnan/laravel-model-caching
Adopt if:
where()->get(), orderBy()->first()).Look elsewhere if:
cache()->forget()).For Executives:
"This package lets us cache database queries automatically—like putting frequently accessed data into a super-fast ‘memory buffer’ instead of hitting the database every time. For example, if our product catalog loads 10x faster, users stay engaged longer, and our cloud bill drops. It’s a no-code tweak that delivers immediate performance gains with minimal risk. We’d start with high-impact models (e.g., Product, User) and measure the impact before scaling."
For Engineering: *"This adds Eloquent-level query caching with minimal setup:
use QueryCacheable), auto-generates cache keys per query, works with all Eloquent methods.cache()->forget() manually or via events)./products) to validate TTFB improvements. If successful, roll out to critical models. Pair with Laravel’s cache() tags later if invalidation becomes a pain point."*For Developers:
"Want to cache Post::wherePublished(true)->get() for an hour? Just add use QueryCacheable and set $cacheFor = 3600 on the model. The package handles the rest—no manual Cache::remember boilerplate. Tradeoff: You’ll need to manually clear cache when data changes (e.g., after Post::updated())."
How can I help you explore Laravel packages today?