Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #52105 [Cache] Remove temporary cache item file on
rename()
fai…
…lure (cedric-anne) This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Cache] Remove temporary cache item file on `rename()` failure | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #52092 | License | MIT The filesystem cache adapter creates a temporary file to store cache item data, then moves it to its target path using `rename()` function. If rename fails, for instance target path is not writable, the temporary file will remains. To prevent filesystem saturation, the temporary files should be deleted if this operation is not done by the `rename()` function itself. Commits ------- af15423 [Cache] Remove temporary cache item file on `rename()` failure
- Loading branch information