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

[5.7] Inform user when a cache:clear command fails #25254

Merged
merged 2 commits into from
Aug 18, 2018
Merged

[5.7] Inform user when a cache:clear command fails #25254

merged 2 commits into from
Aug 18, 2018

Conversation

DCzajkowski
Copy link
Contributor

@DCzajkowski DCzajkowski commented Aug 18, 2018

Reasoning

When a cache:clear command fails it does not inform user in any way about what happend, giving indication everything went ok.

Fail can happen if current user has no write permission in the cache folder.

Impact

It fixes #1179. It also resolves many issues listed here.

This change could be considered a breaking change, but very unlikely it would impact anyone.

Changes

I have added an if statement to see, if flushing succeeded or not. It should be safe to do so as the contract enforces a boolean to be returned.

@GrahamCampbell GrahamCampbell changed the title Inform user when a cache:clear command fails [5.6] Inform user when a cache:clear command fails Aug 18, 2018
@GrahamCampbell GrahamCampbell changed the base branch from 5.6 to 5.7 August 18, 2018 13:55
@GrahamCampbell GrahamCampbell changed the title [5.6] Inform user when a cache:clear command fails [5.7] Inform user when a cache:clear command fails Aug 18, 2018
@taylorotwell taylorotwell merged commit 2efb893 into laravel:5.7 Aug 18, 2018
@sisve
Copy link
Contributor

sisve commented Aug 19, 2018

Will we return an error exit code, or is this just a new text in the output?

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