Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GuntarV's avatar
Level 40

Spatie Laravel -permissions is not caching Roles & Permissions

In my app I am using Spatie Laravel-permissions ( https://spatie.be/docs/laravel-permission/v5/introduction). For apps caching I'm using Memcached. In Spatie docs it says that Roles and Permissions are cached by default. But, in debuger I see Role and Permissions query on every page load. Do I need to do some additional configuration so it strts caching the Roles and Perms? Here is screenshot of query view in debuger: https://prnt.sc/NYDvyppL3wjA

0 likes
0 replies

Please or to participate in this conversation.