Simplify array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ), to array( 'page_id...
authorSam Reed <reedy@users.mediawiki.org>
Mon, 19 Sep 2011 18:46:57 +0000 (18:46 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 19 Sep 2011 18:46:57 +0000 (18:46 +0000)
includes/cache/HTMLCacheUpdate.php

index 497ff9e..91a0930 100644 (file)
@@ -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 );