laravel-model-caching: Pagination count query wont get cached
Environment
Laravel Version: 5.6.3 Laravel Model Caching Package Version: 0.2.33 PHP Version: 7.2.0 Homestead Version: - Operating System & Version: macOs High Sierra 10.13.3
Stack Trace
When using the paginate query there is a count query that not get cached
$articles = Article::paginate(30);
In the debug bar you see this query:
select count(*) as aggregate from articles
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (16 by maintainers)
I will take a look at this, thanks!