Laravel Model Caching Pack

The Laravel model cashing package is a package made by Mike Bronner, who automatically adds model cashing to model queries.

  • Automatic caching.
  • Automatic, self-overriding model query.
  • Clears all cachings for providers that do not support automatic use of Caching tags.

This package was created in response to a client project with complex, nested forms with many selects that resulted in more than 700 database queries on a page. 

For best performance, you should use a caching provider such as Redis or Memcached. When all model queries and relationships are caching, you will see a nice performance boost and performance may vary depending on your use case.

For more information, see GitHub check the warehouse.


KARABAY A, 2020 . Laravel Model Caching Package,

(Accessed February 17, 2020).

  Share this post

Comments (0)


Sign up for the email newsletter to be the first to know about my blog posts