1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Image Proxy - Image and Link Proxy Secret Key

Discussion in 'Troubleshooting and Problems' started by melbo, Jan 19, 2016.

  1. melbo

    melbo Well-Known Member

    We run Image proxy to preserve external images 'Image cache lifetime: 0'
    I didn't realize that changing the Secret Key would cause a refresh of the proxy cache. It did and I lost 1000's of images that are no longer available externally. Is there any way of recovering short of restoring from a backup?
     
  2. melbo

    melbo Well-Known Member

    As much as I'd hate to lose a few days of forum activity, the broken images are enough to make me want to retore the db. Question is will that do it?
     
  3. Mike

    Mike XenForo Developer Staff Member

    The secret key isn't involved in determining whether a refresh from the source is needed; it's really for situations involving hot linking. It shouldn't affect whether an image is displayed. Do you have an example URL?
     
  4. melbo

    melbo Well-Known Member

    I'm pretty sure all we did was change the key and I didn't notice that we lost all 404'd images until it was pointed out today. If that shouldn't affect this then it's possible that the image proxy was unchecked then rechecked. If that happened, is there any query that can rebuild (assuming we have all the images from an rsync backup)

    https://www.survivalmonkey.com/thre...-to-ongoing-participation-thread.23598/page-2
     
  5. melbo

    melbo Well-Known Member

    It looks like everything is still in the database and files are present in /internal_data/image_cache/, just needs a rebuild somehow

    upload_2016-1-19_18-24-22.png



    upload_2016-1-19_18-27-35.png
     
  6. Mike

    Mike XenForo Developer Staff Member

    If the files are present, then they should be used. I suspect that the broken images aren't actually present in the file system.

    Are you positive these specific images were working before? To confirm, you'd need a database and a file backup to determine the record in xf_image_proxy that applies and whether the file exists for that ID.
     
  7. melbo

    melbo Well-Known Member

    Looking now. It's possible that they weren't and I hadn't visited Page 1 of that thread in many years.
    This started from member comments and they might be exaggerated.

    So unchecking and then rechecking Proxy Images wouldn't cause a refresh of the cache?
     
  8. Mike

    Mike XenForo Developer Staff Member

    Unchecking and rechcecking the option shouldn't change anything. It's basically only used to control whether the proxied links are generated.
     
    melbo likes this.
  9. melbo

    melbo Well-Known Member

    We can probably say this was not an issue and the broken links were broken prior to utilizing the Image Proxy feature. Thank you for the explanation.
     

Share This Page