Download remote images from older posts?

  • Enable “download remote images to local” site setting.
  • Set “download remote images max days old” site setting’s value to 3650 (for 10 years).
  • Increase the value of “rebake old posts count” site setting to “300”. To increase it more than 300 you should adjust the global rate limiter setting “max_old_rebakes_per_15_minutes” too.
  • And set the “baked_version” of old posts to “NULL” in rails console.
    ./launcher enter app
    rails c
    > Post.update_all(baked_version: nil)   # or Post.created_since(N.days.ago).update_all(baked_version: nil)
    

Now all the remote images in old posts will get downloaded automatically in the speed of 300 posts per 15 minutes.

12 Likes