Matthias Mullie has uploaded a new change for review.

Change subject: If interwiki prefix not found in cache/interwiki.cdb, look in 
database
......................................................................

If interwiki prefix not found in cache/interwiki.cdb, look in database

On cluster (or anywhere that $wgInterwikiCache is set), when the prefix
is not found in interwiki.cdb file, the database isn't even being checked.
Since interwiki.cdb is automatically built through
extensions/WikimediaMaintenance/rebuildInterwiki.php, it's pretty much
impossible to add "custom" prefixes (as is currently being done in wikivoyage).
One possible solution could be to define the prefix(es) through
http://meta.wikimedia.org/wiki/Interwiki_map, but then these prefixes would be
__global and apply to all sites using the interwiki.cdb file.

What this patch does is force a database-lookup (per-wiki) for prefixes that are
not found in interwiki.cdb. Most will be handled by interwiki.cdb already, and
the database lookup results are stored in cache, so this shouldn'ti really hurt
performance.

Change-Id: I71ad2ba72a11cfa33c3b88e30889a33da14f588e
---
M includes/interwiki/Interwiki.php
1 file changed, 12 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/65/32565/1
--
To view, visit https://gerrit.wikimedia.org/r/32565
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I71ad2ba72a11cfa33c3b88e30889a33da14f588e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to