Commit graph

1 commit

Author SHA1 Message Date
Yang Wang
9e1f912ccc
Cache API key doc to reduce traffic to the security index (#59376)
Getting the API key document form the security index is the most time consuing part
of the API Key authentication flow (>60% if index is local and >90% if index is remote).
This traffic is now avoided by caching added with this PR.

Additionally, we add a cache invalidator registry so that clearing of different caches will
be managed in a single place (requires follow-up PRs).
2020-10-06 21:41:25 +11:00