Kevin
Woblick

CollectionsArticlesNewsTestsTutorials

Laravel query caching with Rememberable

1 min. read

Laravel caching is really awesome and works perfectly. By adding the watson/rememberable package I was able to reduce the overall query count from 33 to zero. Zero!

// Get a the first user's posts and remember them for a day.
User::first()->remember(1440)->posts()->get();

Webmentions

0 Mentions
0 Reposts
Likes