Problem/Motivation
File URL is purged twice on update.
Steps to reproduce
When updating a file, this module purges both the original and new URL of the file, which is great! However, if these are the same, we should only purge the URL once. This will be just a tiny micro-optimization but still seems worth it :)
Proposed resolution
Compare the old and new file URLs before issuing two purges.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3261445-2.patch | 576 bytes | mfb |
Comments
Comment #2
mfbSomething like this could do it
Comment #4
omarlopesinoI've checked it and it works fine. So know we won't have that duplicate call to the purge system.
This correction will be ready in the 1.0.0-alpha3 version. Thanks for the contribution!