*
* @file
* @author Tim Starling
- * @author Aaron Schulz
* @copyright © 2009, Tim Starling, Domas Mituzas
* @copyright © 2010, Max Sem
* @copyright © 2011, Antoine Musso
* @return ResultWrapper
*/
protected function queryLinks( $table, $startId, $endId, $max, $select = 'all' ) {
-
$fromField = $this->getPrefix( $table ) . '_from';
if ( !$startId && !$endId && is_infinite( $max )
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 );
return $cacheEntry['batches'];
}
- $memcKey = wfMemcKey(
+ $memcKey = $cache->makeKey(
'backlinks',
md5( $this->title->getPrefixedDBkey() ),
$table,
$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" );