Index: trunk/phase3/includes/cache/HTMLCacheUpdate.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | |
54 | 54 | if ( $this->mTable === 'globaltemplatelinks' ) { |
55 | 55 | global $wgEnableInterwikiTemplatesTracking; |
56 | | - |
| 56 | + |
57 | 57 | if ( $wgEnableInterwikiTemplatesTracking ) { |
58 | 58 | $distantPageArray = $this->mCache->getDistantTemplateLinks( 'globaltemplatelinks' ); |
59 | 59 | $this->invalidateDistantTitles( $distantPageArray ); |
— | — | @@ -189,7 +189,7 @@ |
190 | 190 | foreach ( $batches as $batch ) { |
191 | 191 | $dbw->update( 'page', |
192 | 192 | array( 'page_touched' => $timestamp ), |
193 | | - array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ), |
| 193 | + array( 'page_id' => $batch ), |
194 | 194 | __METHOD__ |
195 | 195 | ); |
196 | 196 | } |
— | — | @@ -213,7 +213,7 @@ |
214 | 214 | */ |
215 | 215 | protected function invalidateDistantTitles( $distantPageArray ) { |
216 | 216 | global $wgUseSquid; |
217 | | - |
| 217 | + |
218 | 218 | $pagesByWiki = array(); |
219 | 219 | $titleArray = array(); |
220 | 220 | # Sort by WikiID in $pagesByWiki |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | ); |
241 | 241 | } |
242 | 242 | } |
243 | | - |
| 243 | + |
244 | 244 | # Update squid |
245 | 245 | if ( $wgUseSquid ) { |
246 | 246 | $u = SquidUpdate::newFromTitles( $titleArray ); |