From: Aaron Schulz Date: Mon, 27 Apr 2015 23:45:58 +0000 (-0700) Subject: Remove cache use in setNewtalk, as nothing reads from that X-Git-Tag: 1.31.0-rc.0~11565^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=76f961097a6ba67d4f013bc5035b5ea463c5bc46;p=lhc%2Fweb%2Fwiklou.git Remove cache use in setNewtalk, as nothing reads from that Change-Id: Ia094fa99be49816b48e35aeb695b5d9558fd1d28 --- diff --git a/includes/User.php b/includes/User.php index c3d4a65c6d..921d604c83 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2252,8 +2252,6 @@ class User implements IDBAccessObject { * page. Ignored if null or !$val. */ public function setNewtalk( $val, $curRev = null ) { - global $wgMemc; - if ( wfReadOnly() ) { return; } @@ -2275,12 +2273,6 @@ class User implements IDBAccessObject { $changed = $this->deleteNewtalk( $field, $id ); } - if ( $this->isAnon() ) { - // Anons have a separate memcached space, since - // user records aren't kept for them. - $key = wfMemcKey( 'newtalk', 'ip', $id ); - $wgMemc->set( $key, $val ? 1 : 0, 1800 ); - } if ( $changed ) { $this->invalidateCache(); }