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

**URL:** https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657
**Category:** Support
**Created:** [04.Июнь.2015 16:25:37 UTC](https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657 "2015-06-04T16:25:37Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [04.Июнь.2015 16:33:22 UTC](https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657/2 "2015-06-04T16:33:22Z")

</div>

> [@trandatnh](#):
>
> Is there anyway to convert all those urls programmatically?

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

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

```

The high-CPU usage but faster way

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

```

---

_[View the full topic](https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657)._
