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

XF 1.5 can "Proxy Image" be made permanent ?

Discussion in 'XenForo Questions and Support' started by erich37, Jan 29, 2016.

  1. erich37

    erich37 Well-Known Member

    Question, please.....

    when I am uploading an image into the Forum via the function "image URL" in the Editor, same as I did here:


    Is there a possibility (or already build in feature in XF) which lets me make this "Proxy Image" being permanent ?

    Meaning: is it possible to save "Proxy Images" (which are linked from a third-party website) onto my own server/website ?

    Many thanks!

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Set the 'Image Cache Lifetime (Days)' option to 0.
    erich37 likes this.
  3. erich37

    erich37 Well-Known Member

    Many thanks for your help!

  4. Beanjam

    Beanjam Active Member

    Where are the proxied images stored?

    And if the proxy is ever disabled, will all those previous images disappear from their posts if they've been taken down from the third part host in the meantime?
  5. Brogan

    Brogan XenForo Moderator Staff Member

    They are stored on your server.

  6. Beanjam

    Beanjam Active Member

    Ah, found them thanks.. stored separately from the usual attachments in the image_cache directory.

    I'd also love to see an option to enforce thumbnails on proxied images.

    Although, thinking about this again I imagine permanently proxying images may upset some users who use those regularly updating signature images.
    Last edited: Jun 25, 2016
  7. Beanjam

    Beanjam Active Member

    I'm just trying to figure out how the cache lifetime and cache refresh work together.

    Cache lifetime - proxy images expire and are deleted
    Cache refresh - proxy images are re-proxied

    Do these events happen automatically by cron, without requiring a hit on a post containing that image?

    If using both, does the cache lifetime automatically get extended when the cache is refreshed?

    It seems then that cache refresh should always be set to a value lower that the cache lifetime.

    I assume if I were to set a cache lifetime of 0 days (permanent) and cache refresh of 7 days, then each 7 days the image would be refreshed. If the external image died in the mean time, would the cached image now also be dead or would the previously cached image still carry on being served?
  8. Mike

    Mike XenForo Developer Staff Member

    Lifetime removal is based on cron. Refreshing is based on requests.


    The previous image should still be served.
    Beanjam likes this.

Share This Page