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

Add new Filesystem.allCachesCleared event after all caches cleared. #12568

Merged
merged 1 commit into from Feb 20, 2018

Conversation

diosmosis
Copy link
Member

As title.


/**
* Triggered after all non-memory caches are cleared (eg, via the cache:clear
* command).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the PiwikCache::flushAll(); above also clears the Lazy, Transient and Eager cache.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but the event isn’t fired every time the in memory caches are cleared, that’s just a side effect of this method. The purpose of the filesystem method is to clear non-memory caches (and if you’re going to do that, it doesn’t make sense to keep the in memory ones.

I think adding that detail would eventually result in confusion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true ;)

@tsteur tsteur merged commit 00def1b into 3.x-dev Feb 20, 2018
@tsteur tsteur deleted the cache-clear-event branch February 20, 2018 23:54
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.

None yet

3 participants