http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97536

Revision: 97536
Author:   reedy
Date:     2011-09-19 18:46:57 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
Simplify array( 'page_id IN (' . $dbw->makeList( $batch ) . ')' ), to array( 
'page_id' => $batch ),

Modified Paths:
--------------
    trunk/phase3/includes/cache/HTMLCacheUpdate.php

Modified: trunk/phase3/includes/cache/HTMLCacheUpdate.php
===================================================================
--- trunk/phase3/includes/cache/HTMLCacheUpdate.php     2011-09-19 18:45:16 UTC 
(rev 97535)
+++ trunk/phase3/includes/cache/HTMLCacheUpdate.php     2011-09-19 18:46:57 UTC 
(rev 97536)
@@ -52,7 +52,7 @@
 
                if ( $this->mTable === 'globaltemplatelinks' ) {
                        global $wgEnableInterwikiTemplatesTracking;
-                       
+
                        if ( $wgEnableInterwikiTemplatesTracking ) {
                                $distantPageArray = 
$this->mCache->getDistantTemplateLinks( 'globaltemplatelinks' );
                                $this->invalidateDistantTitles( 
$distantPageArray );
@@ -189,7 +189,7 @@
                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 @@
         */
        protected function invalidateDistantTitles( $distantPageArray ) {
                global $wgUseSquid;
-               
+
                $pagesByWiki = array();
                $titleArray = array();
                # Sort by WikiID in $pagesByWiki
@@ -239,7 +239,7 @@
                                );
                        }
                }
-               
+
                # Update squid
                if ( $wgUseSquid ) {
                        $u = SquidUpdate::newFromTitles( $titleArray );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to