[RSS Feed/News] Image Proxy refresh seems inefficient

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
When refreshing a proxied image, 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.

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom