# X/Twitter onebox caching question

**URL:** https://meta.discourse.org/t/x-twitter-onebox-caching-question/296493
**Category:** Development
**Tags:** onebox, rest-api
**Created:** [February 23, 2024, 4:10pm UTC](https://meta.discourse.org/t/x-twitter-onebox-caching-question/296493 "2024-02-23T16:10:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ninermac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ninermac/32/135729_2.png) [@ninermac](https://meta.discourse.org/u/ninermac)
#### Post date: [February 23, 2024, 4:10pm UTC](https://meta.discourse.org/t/x-twitter-onebox-caching-question/296493/1 "2024-02-23T16:10:23Z")

</div>

I’m considering subscribing to the X API basic tier at 10k reads a month. In looking around it looks like discourse caches the onebox except if html is rebuilt or a rebake?

What I’d really like to do is cache any X/Twitter oneboxes permanently. Is that possible?

I’m pretty sure if I can do that I’ll be able to keep myself under the limit for forum activity and some of the other things I plan to develop.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 23, 2024, 4:11pm UTC](https://meta.discourse.org/t/x-twitter-onebox-caching-question/296493/2 "2024-02-23T16:11:53Z")

</div>

> [@ninermac](#):
>
> it looks like discourse caches the onebox except if html is rebuilt or a rebake?

Yes

> [@ninermac](#):
>
> What I’d really like to do is cache any X/Twitter oneboxes permanently. Is that possible?

No, but Discourse doesn’t usually issue full rebakes, so people are mostly safe.
