# Twitter Native Embed

**URL:** https://meta.discourse.org/t/twitter-native-embed/261792
**Category:** Theme component
**Created:** [April 15, 2023, 12:35pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792 "2023-04-15T12:35:49Z")
**Posts on this page:** 1
**Showing post:** 99

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [December 20, 2025, 7:19pm UTC](https://meta.discourse.org/t/twitter-native-embed/261792/99 "2025-12-20T19:19:32Z")

</div>

You can clear the cache and rebake in rails like this (probably a good idea to take a backup first).  
Or you can wait 24 hours for the onebox cache to expire.

```bash
# Enter Rails console
./launcher enter app
rails c

```

```ruby
# From Rails console

# 1. Clear onebox cache from Redis
Discourse.redis.keys("*onebox*").each { |key| Discourse.redis.del(key) }

# 2. Rebake posts with twitter.com
Post.where("raw LIKE ?", "%twitter.com%").find_each { |post| post.rebake! }
```

---

_[View the full topic](https://meta.discourse.org/t/twitter-native-embed/261792)._
