Some oneboxes may fail if when making excessive and/or odd requests against the target domains. This change provides a simple mechanism to cache the results of succesful GET requests as part of the oneboxing process, with the goal of reducing repeated requests and ultimately improving the rate of successful oneboxing.
To enable:
Set SiteSetting.cache_onebox_response_body
to true
Add the domains you’re interesting in caching to SiteSetting. cache_onebox_response_body_domains
e.g. example.com|example.org|example.net
Optionally set SiteSetting.cache_onebox_user_agent
to a user agent string of your choice to use when making requests against domains in the above list.