Speed up execution of files updates by moving files instead of copying them#1599
Conversation
Quetzacoalt91
commented
Jan 15, 2026
| Questions | Answers |
|---|---|
| Description? | During the update of files, move them instead of copying them which is a really fast operation when the source and destination are on the same disk partition. |
| Type? | improvement |
| BC breaks? | Nope |
| Deprecations? | Nope |
| Fixed ticket? | / |
| Sponsor company | @PrestaShopCorp |
| How to test? | Check the time needed to run the updates, especially until the end of the update of files. You should expect the time taken to be cut in half. |
|
Hlavtox
left a comment
There was a problem hiding this comment.
Should work good, but watch out for permissions. Rename needs write+execute rights for both orig and dest directories. It should work just fine, but could be more sensitive.
|
It should just work indeed as we need to change the I had another concern which the probability to use the same file a second time, but that's not the case. 👍 |
There was a problem hiding this comment.
Hi @
Thank you for your PR, I tested it and it seems to works as you can see :
From 9.0.0 classic to 9.0.2 on localhost
Before PR : 1m30
After PR : 1m20
8.1.4 to 9.0.2 on localhost
before PR : 1min58
After PR : 1min50
8.2.3 to 9.0.2 on docker :
before PR : 3min30
After PR : 2min02
Because the PR seems to works as expected, It's QA ✔️
Thank you


