-
Notifications
You must be signed in to change notification settings - Fork 120
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
base: dev
Are you sure you want to change the base?
Conversation
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 |
Shall we wait for #1159 to be merged first? |
} | ||
} | ||
|
||
return $hasDeletedItems; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
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.
ed5ed0b
to
e0c5ef4
Compare
e0c5ef4
to
c6ecb7a
Compare
|