if ( $this->mTable === 'globaltemplatelinks' ) {
global $wgEnableInterwikiTemplatesTracking;
-
+
if ( $wgEnableInterwikiTemplatesTracking ) {
$distantPageArray = $this->mCache->getDistantTemplateLinks( 'globaltemplatelinks' );
$this->invalidateDistantTitles( $distantPageArray );
foreach ( $batches as $batch ) {
$dbw->update( 'page',
array( 'page_touched' => $timestamp ),
- array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ),
+ array( 'page_id' => $batch ),
__METHOD__
);
}
*/
protected function invalidateDistantTitles( $distantPageArray ) {
global $wgUseSquid;
-
+
$pagesByWiki = array();
$titleArray = array();
# Sort by WikiID in $pagesByWiki
);
}
}
-
+
# Update squid
if ( $wgUseSquid ) {
$u = SquidUpdate::newFromTitles( $titleArray );