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

Use clearDirectory for cache cleaner #1159

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

M0rgan01
Copy link
Contributor

@M0rgan01 M0rgan01 commented Feb 5, 2025

Questions Answers
Description? Use clearDirectory for cache cleaner
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? PrestaShop/PrestaShop#37979
Sponsor company -
How to test? PrestaShop/PrestaShop#37979

@M0rgan01 M0rgan01 added this to the 7.0.0 milestone Feb 5, 2025
@M0rgan01 M0rgan01 marked this pull request as ready for review February 5, 2025 16:37
@M0rgan01 M0rgan01 closed this Feb 5, 2025
@M0rgan01 M0rgan01 reopened this Feb 5, 2025
@Quetzacoalt91
Copy link
Member

Shall we wait for #1159 to be merged first?

ga-devfront
ga-devfront previously approved these changes Feb 6, 2025
}
}

return $hasDeletedItems;
Copy link
Contributor

Choose a reason for hiding this comment

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

@M0rgan01 If there is nothing to delete, shouldnt we also return true? Maybe sometimes you will call it by accident on an empty folder and wonder why it returns false when the folder is empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Hlavtox

Thank you for your feedback.

This boolean is present to indicate if elements have been deleted, for the purpose of conditioning potential logs, we could totally do without it.

To know if the process is going well, you should use a try catch.

I will add a more detailed doc.

Copy link
Contributor

Choose a reason for hiding this comment

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

@M0rgan01 No worries, just a thought. :-) I understand.

@M0rgan01 M0rgan01 force-pushed the fix-clear-cache branch 2 times, most recently from ed5ed0b to e0c5ef4 Compare February 6, 2025 09:49
Copy link

sonarqubecloud bot commented Feb 6, 2025

@Quetzacoalt91 Quetzacoalt91 added the bug Type: Bug fix label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Reopened
Development

Successfully merging this pull request may close these issues.

6 participants