Skip to content

[11.x] Add CacheFlushed Event #55121

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

Closed

Conversation

tech-wolf-tw
Copy link
Contributor

Description:
Introduces CacheFlushed event dispatching when calling $cache->flush(). Enables monitoring of full cache clearance for logging, auditing, or reactive workflows. Maintains backward compatibility.

This PR resolves this issue in Laravel Version 11

@tech-wolf-tw tech-wolf-tw marked this pull request as draft March 21, 2025 15:10
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@tech-wolf-tw tech-wolf-tw marked this pull request as ready for review March 21, 2025 15:12
@parallels999
Copy link

thanks for targeting 11.x 😊

@taylorotwell
Copy link
Member

I don't think this should extend CacheEvent. That is for key based operations.

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.

3 participants