X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FUserRightsProxy.php;h=a19f6984f257f32c2030584ab5ad7ca9b621305d;hb=fd985d75c825fe131f5a87d26bb0b33f8570a280;hp=1b9e4b69065d2c948e2ab374578c7cdfe4017073;hpb=82ce368f80b2b2645e379abfcac84b41f8962bd0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/UserRightsProxy.php b/includes/UserRightsProxy.php index 1b9e4b6906..a19f6984f2 100644 --- a/includes/UserRightsProxy.php +++ b/includes/UserRightsProxy.php @@ -278,8 +278,8 @@ class UserRightsProxy { array( 'user_id' => $this->id ), __METHOD__ ); - global $wgMemc; + $cache = ObjectCache::getMainWANInstance(); $key = wfForeignMemcKey( $this->database, false, 'user', 'id', $this->id ); - $wgMemc->delete( $key ); + $cache->delete( $key ); } }