Skip to content

Pagination count query wont get cached #85

Closed
@jurrid

Description

@jurrid

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions