# Does Onebox engine cache content locally?

**URL:** https://meta.discourse.org/t/does-onebox-engine-cache-content-locally/59757
**Category:** Support
**Created:** [March 23, 2017, 11:48am UTC](https://meta.discourse.org/t/does-onebox-engine-cache-content-locally/59757 "2017-03-23T11:48:15Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [March 23, 2017, 12:53pm UTC](https://meta.discourse.org/t/does-onebox-engine-cache-content-locally/59757/4 "2017-03-23T12:53:11Z")

</div>

Yep, Discourse also caches any onebox requests for 24 hours, to prevent repeated requests to third party sites like amazon.

> <https://github.com/discourse/discourse/blob/49a0f16ce488817bba89d57b0701a85e93b10752/lib/oneboxer.rb#L143>

If you’re in a development environment and want to purge the cache, there are some suggestions in this thread. **Do not purge the redis cache on a production site** - it will mess with lots of things:

> [@Clear Onebox Cache](https://meta.discourse.org/t/clear-onebox-cache/40080):
>
> I’m developing a small Onebox plugin and testing it in my production install. It appears that Discourse is caching the Oneboxes: When I paste a link I once saw oneboxed into a new post, the preview is still looking as if it was generated by an older version of the plugin, while newer links appear as they should. All this is happening in the preview, I’m not actually posting the link. How can I clear this cache?

---

_[View the full topic](https://meta.discourse.org/t/does-onebox-engine-cache-content-locally/59757)._
