Use expireAfterAccess with a larger cache size for ExternalIdCache
Change-Id: If299a5cc8746cf9e7d59c8e4acf03cb9a29cf02d
diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt
index 3e4569c..4bfd2a4 100644
--- a/Documentation/config-gerrit.txt
+++ b/Documentation/config-gerrit.txt
@@ -753,7 +753,7 @@
* `"diff"`: default is `10m` (10 MiB of memory)
* `"diff_intraline"`: default is `10m` (10 MiB of memory)
* `"diff_summary"`: default is `10m` (10 MiB of memory)
-* `"external_ids_map"`: default is `1` and should not be changed
+* `"external_ids_map"`: default is `2` and should not be changed
* `"groups"`: default is unlimited
* `"groups_byname"`: default is unlimited
* `"groups_byuuid"`: default is unlimited
@@ -858,7 +858,9 @@
cache `"external_ids_map"`::
+
A singleton cache whose sole entry is a map of the parsed representation
-of link:config-accounts.html#external-ids[all current external IDs].
+of link:config-accounts.html#external-ids[all current external IDs]. The
+cache may temporarily contain 2 entries, but the second one is promptly
+expired.
+
It is not recommended to change the attributes of this cache away from
the defaults.