Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a file_exists() check before unlinking cache files.
This prevents issues where two concurrent requests could be clearing the same cache files. Fixes #1936
- Loading branch information
4a7bd03
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.
This does not help with the race conditions. The only way to fix the problem is by:
Not even
if (file_exists ($path))
.4a7bd03
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.
Thanks, did you want to do a pull request to improve this?