Disable CDN causes old images with CDN URL can not be shown

You will need to rebake all your post to update the urls. There are 2 ways of doing it:

The low-CPU usage but slow way

# ssh into server
cd /var/discourse
./launcher enter app
rails c
Post.update_all(baked_version: nil)

The high-CPU usage but faster way

# ssh into server
cd /var/discourse
./launcher enter app
rake posts:rebake
4 Likes