Support the ongoing development of Laravel.io →
Cache Eloquent
Last updated 2 years ago.
0

+1

I'm having the same problem.

This works:

User::rememberForever()->paginate(Input::get('per_page', 20));

This doesn't:

User::rememberForever('key')->paginate(Input::get('per_page', 20));

The data I'm getting back from this query is "[{"aggregate":"2"}]".

Where 2 is the number of User in my database.

Laravel 4.1.30.

Last updated 2 years ago.
0

+1 Seems to be an issue in the paginator with using Cache keys instead. Which is an interesting problem.

I would quite like to know if anyone has found a solution for this, as a web app I'm implementing that makes use of pagination needs to be able to clear the Pagination cache for a number of models

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ericksli ericksli Joined 17 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.