Skip to content

[12.x] Add CacheFlushed Event #55117

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

@tech-wolf-tw tech-wolf-tw commented Mar 21, 2025

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

@tech-wolf-tw tech-wolf-tw marked this pull request as draft March 21, 2025 10:59
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 requested a review from cosmastech March 21, 2025 11:38
@tech-wolf-tw tech-wolf-tw marked this pull request as ready for review March 21, 2025 11:48
@crynobone crynobone linked an issue Mar 21, 2025 that may be closed by this pull request
@parallels999
Copy link

Shouldn't it be targeting 11.x?

@crynobone crynobone changed the title [12.x] Fix: Added CacheFlushed Event [12.x] Add CacheFlushed Event Mar 21, 2025
@cesarreyes3
Copy link

Great, it works, thanks 👍

And, yes, it should. In 11.x this is also missing.

@taylorotwell
Copy link
Member

Shouldn't extend CacheEvent.

@tech-wolf-tw
Copy link
Contributor Author

Shouldn't extend CacheEvent.

Hi @taylorotwell , I have changed the event class and raised a new PR,

kindly review it thanks!

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.

Missing flushed cache event on Illuminate\Cache\TaggableStore
5 participants