Skip to content

Pivot model not invalidating cache. #481

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

Open
mikebronner opened this issue Mar 4, 2025 · 2 comments
Open

Pivot model not invalidating cache. #481

mikebronner opened this issue Mar 4, 2025 · 2 comments
Assignees

Comments

@mikebronner
Copy link
Owner

@mikebronner I just seen a potential issue when using pivot models (https://laravel.com/docs/12.x/eloquent-relationships#defining-custom-intermediate-table-models).
Cache is not invalidated once an attachement or detachment is processed trough such a pivot model, in fact, the action is not detected at all in pivotSynced, pivotAttached, ... events.
Is this something that is not yet covered by the package ?

Originally posted by @Okipa in #479

@mikebronner
Copy link
Owner Author

mikebronner commented Mar 4, 2025

@Okipa I'll have to dig in and verify. If anyone else knows, please chime in.

@mikebronner
Copy link
Owner Author

mikebronner commented Mar 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant