r70577 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70576‎ | r70577 | r70578 >
Date:16:02, 6 August 2010
Author:catrope
Status:ok (Comments)
Tags:
Comment:
wfForeignMemcKey() just exists, we don't have to keep around crazy back compat for that
Modified paths:
  • /trunk/phase3/includes/UserRightsProxy.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/UserRightsProxy.php
@@ -193,11 +193,7 @@
194194 __METHOD__ );
195195
196196 global $wgMemc;
197 - if ( function_exists( 'wfForeignMemcKey' ) ) {
198 - $key = wfForeignMemcKey( $this->database, false, 'user', 'id', $this->id );
199 - } else {
200 - $key = "$this->database:user:id:" . $this->id;
201 - }
 197+ $key = wfForeignMemcKey( $this->database, false, 'user', 'id', $this->id );
202198 $wgMemc->delete( $key );
203199 }
204200 }

Comments

#Comment by Happy-melon (talk | contribs)   16:50, 17 December 2010

Lol.

Status & tagging log