From: Sam Reed Date: Mon, 19 Sep 2011 18:46:57 +0000 (+0000) Subject: Simplify array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ), to array( 'page_id... X-Git-Tag: 1.31.0-rc.0~27554 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=40fa861e62b828878499af667cfcd7c778948089;p=lhc%2Fweb%2Fwiklou.git Simplify array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ), to array( 'page_id' => $batch ), --- diff --git a/includes/cache/HTMLCacheUpdate.php b/includes/cache/HTMLCacheUpdate.php index 497ff9ec73..91a0930ff0 100644 --- a/includes/cache/HTMLCacheUpdate.php +++ b/includes/cache/HTMLCacheUpdate.php @@ -52,7 +52,7 @@ class HTMLCacheUpdate implements DeferrableUpdate { if ( $this->mTable === 'globaltemplatelinks' ) { global $wgEnableInterwikiTemplatesTracking; - + if ( $wgEnableInterwikiTemplatesTracking ) { $distantPageArray = $this->mCache->getDistantTemplateLinks( 'globaltemplatelinks' ); $this->invalidateDistantTitles( $distantPageArray ); @@ -189,7 +189,7 @@ class HTMLCacheUpdate implements DeferrableUpdate { foreach ( $batches as $batch ) { $dbw->update( 'page', array( 'page_touched' => $timestamp ), - array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ), + array( 'page_id' => $batch ), __METHOD__ ); } @@ -213,7 +213,7 @@ class HTMLCacheUpdate implements DeferrableUpdate { */ protected function invalidateDistantTitles( $distantPageArray ) { global $wgUseSquid; - + $pagesByWiki = array(); $titleArray = array(); # Sort by WikiID in $pagesByWiki @@ -239,7 +239,7 @@ class HTMLCacheUpdate implements DeferrableUpdate { ); } } - + # Update squid if ( $wgUseSquid ) { $u = SquidUpdate::newFromTitles( $titleArray );