Translations:Manual:$wgInterwikiCache/17/en

This appears to use a constant database file (created by one of the maintenance scripts) to provide a list of valid interwiki prefixes and corresponding URLs.