rennokki/laravel-eloquent-query-cache
Cache::remember() calls) with a standardized, maintainable approach.Adopt when:
Look elsewhere if:
Cache facade) and prefer manual control.For Executives: "This package lets us cache database query results automatically—like hitting ‘Ctrl+C’ on repetitive API calls. For example, if our product catalog API is queried 10,000 times/day but the data changes hourly, we could cut database load by 90% with zero code changes. It’s a low-risk, high-reward way to improve performance and reduce cloud costs, especially for read-heavy workloads. Think of it as ‘autopilot’ for database queries."
For Engineering:
*"This replaces Laravel’s deprecated remember() method with a modern, tag-based caching layer for Eloquent. Key benefits:
@cache to queries or use the remember() macro globally.Product::tag('featured')->remember(60)).For Developers:
*"Imagine never writing Cache::remember() again. This package lets you cache any Eloquent query with a single line:
$products = Product::where('active', true)->remember(300); // Cached for 5 mins
It even supports:
User models with Cache::tags('users')->flush().?sort=price).How can I help you explore Laravel packages today?