mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-14 18:15:44 +00:00
Purge the cached value from memcached.
This fixes issues such as the one reported in http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/60769 That thread is about negative results (added in r98109), but the memcached caching layer had been there since the conception of interwiki table in r1589 (3002e1d).
This commit is contained in:
parent
3eafce2cee
commit
ec8665002a
Notes:
Platonides
2012-04-15 20:00:42 +00:00
|
@ -167,7 +167,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
}
|
||||
|
||||
function doSubmit() {
|
||||
global $wgContLang;
|
||||
global $wgContLang, $wgMemc;
|
||||
|
||||
$request = $this->getRequest();
|
||||
$prefix = $request->getVal( 'wpInterwikiPrefix' );
|
||||
|
@ -192,6 +192,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
$this->getOutput()->addWikiMsg( 'interwiki_deleted', $prefix );
|
||||
$log = new LogPage( 'interwiki' );
|
||||
$log->addEntry( 'iw_delete', $selfTitle, $reason, array( $prefix ) );
|
||||
$wgMemc->delete( wfMemcKey( 'interwiki', $prefix ) );
|
||||
}
|
||||
break;
|
||||
case 'add':
|
||||
|
@ -226,6 +227,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
$this->getOutput()->addWikiMsg( "interwiki_{$do}ed", $prefix );
|
||||
$log = new LogPage( 'interwiki' );
|
||||
$log->addEntry( 'iw_' . $do, $selfTitle, $reason, array( $prefix, $theurl, $trans, $local ) );
|
||||
$wgMemc->delete( wfMemcKey( 'interwiki', $prefix ) );
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue