Cache Gitlab::Geo queries
What does this MR do?
Caches database queries to all Gitlab::Geo related methods and expiration logic.
Are there points in the code the reviewer needs to double check?
Make sure we are handling cache correctly
Why was this MR needed?
We are using RequestStore to cache calls in within the same request, but most of these things changes very rarely. There is a lot more room to cache and prevent continuous database hits on every request.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #1983 (closed)