Remove native caching. (PR #415)

https://meta.discourse.org/t/google-maps-onebox-data-is-not-cached/59124/9

GitHub

This seems good to me. It looks like only internal APIs changed and for apps that use onebox everything will be the same except the passed in cache does nothing?

This is great, but @eviltrout raises a real important point here, if people do:

Onebox.options = {
  cache: Rails.cache
}

We should complain that this option is no longer respected, at least maybe for the next 6 months?

Thanks for the review @eviltrout :heart:

It looks like only internal APIs changed and for apps that use onebox everything will be the same except the passed in cache does nothing?

That is correct.

@SamSaffron I updated the PR to warn when cache option is passed.