Currently ForeginApiRepo is hardcoded to cache HTTP responses for at most 1 hour (And siteinfo for 2) [ With adaptive ttl that may be less].
Re-fetching this data is really expensive. 1 hour is probably insufficient for many users. This should at the very least be configurable.
For clarity i'm referring to third argument of ForeignApiRepo::httpGetCached