- Affected version
- 2.2.6
When refreshing a proxied image,
This does seem inefficient as it does cause more writes than necessary which could be an issue when using short refresh times and SSDs.
The file should therefore only be written if the data actually has changed, ideally by using a hash stored in the DB.
XF\Service\ImageProxy::finalizeFromFetchResults()
always does write the image file on success even if nothing has changed.This does seem inefficient as it does cause more writes than necessary which could be an issue when using short refresh times and SSDs.
The file should therefore only be written if the data actually has changed, ideally by using a hash stored in the DB.