Last modified: 2014-02-12 23:35:46 UTC
Just a little poke for myself. There's a fair bit of redundancy with the fact that interwiki links are stored in the cache for each wiki that uses them, but that's all basically duplication when you are sharing the interwiki table.
Just a reminder to hunt through the code. I intend to make it so that when you share the interwiki table, the cache will use the key for that shared table instead of the local one. The data is all equivilant so the idea here is that doing that will reduce data duplication (Can get fairly large on wiki farms), and also improve the speed of the interwiki cache purging maintenance script since it will only need to run over a single database instead of once for each wiki.
This should be doable in Title::getInterwikiCached();
wfForeignMemcKey and wfForeignWikiID will act as helpers for using foreign keys instead of locals.
Potentially a simple helper set wfMemcKeyForTable and wfWikiIDForTable could also be created, first input would be a table name and they would output the data for the shared if that table is shared, or local otherwise. That would simplify something which may likely end up common inside of MediaWiki when dealing with caches for strait table data.
unassign Daniel Friesen after talking to him