Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reset cache #358

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Fix reset cache #358

merged 1 commit into from
Apr 25, 2024

Conversation

makss
Copy link
Contributor

@makss makss commented Apr 25, 2024

WHY

The laravel-permission package uses the caching key that is specified in the config and which can be changed.

But PermissionManager resets the cache directly using the hard-coded key.

\Cache::forget('spatie.permission.cache');

AFTER - What is happening after this PR?

Now, to reset the cache, the recommendation of the developers of the laravel-permission package was used.

@pxpm
Copy link
Contributor

pxpm commented Apr 25, 2024

Totally, makes sense.

Thanks @makss 🙏

@pxpm pxpm merged commit 4263672 into Laravel-Backpack:main Apr 25, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants