From: Aaron Schulz Date: Thu, 20 Apr 2017 19:26:23 +0000 (-0700) Subject: Use makeKey() in BacklinkCache X-Git-Tag: 1.31.0-rc.0~3450^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=33bc3e7dfb1ab64f5451a09a4a8cd243dd441171;p=lhc%2Fweb%2Fwiklou.git Use makeKey() in BacklinkCache Change-Id: I23c000c8c2c77aa538fe258ea34eb764987eb52d --- diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php index e171bc74c5..3ee6330019 100644 --- a/includes/cache/BacklinkCache.php +++ b/includes/cache/BacklinkCache.php @@ -339,7 +339,11 @@ class BacklinkCache { return min( $max, $this->fullResultCache[$table]->numRows() ); } - $memcKey = wfMemcKey( 'numbacklinks', md5( $this->title->getPrefixedDBkey() ), $table ); + $memcKey = $cache->makeKey( + 'numbacklinks', + md5( $this->title->getPrefixedDBkey() ), + $table + ); // 3) ... fallback to memcached ... $count = $cache->get( $memcKey ); @@ -393,7 +397,7 @@ class BacklinkCache { return $cacheEntry['batches']; } - $memcKey = wfMemcKey( + $memcKey = $cache->makeKey( 'backlinks', md5( $this->title->getPrefixedDBkey() ), $table, @@ -436,7 +440,11 @@ class BacklinkCache { $cache->set( $memcKey, $cacheEntry, self::CACHE_EXPIRY ); // Save backlink count to memcached - $memcKey = wfMemcKey( 'numbacklinks', md5( $this->title->getPrefixedDBkey() ), $table ); + $memcKey = $cache->makeKey( + 'numbacklinks', + md5( $this->title->getPrefixedDBkey() ), + $table + ); $cache->set( $memcKey, $cacheEntry['numRows'], self::CACHE_EXPIRY ); wfDebug( __METHOD__ . ": got from database\n" );