Some corrections, and a test for bug 361
[lhc/web/wiklou.git] / maintenance / refreshLinks.inc
index 1aac42e..82bf29a 100644 (file)
@@ -1,5 +1,12 @@
 <?php
+/**
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Maintenance
+ * @version $Id$
+ */
 
+/** */
 define( "REPORTING_INTERVAL", 50 );
 define( "PAUSE_INTERVAL", 50 );
 
@@ -41,12 +48,18 @@ function refreshLinks( $start ) {
                
                # Look up the links in the DB and add them to the link cache
                $wgOut->transformBuffer( RLH_FOR_UPDATE );
+               $wgOut->clearHTML();
 
                if ( $wgEnablePersistentLC ) {
                        $wgLinkCache->saveToLinkscc( $id, $dbw->strencode( $wgTitle->getPrefixedDBkey() ) );
                }
 
                $linksUpdate = new LinksUpdate( $id, $wgTitle->getPrefixedDBkey() );
+               /** FIXME 
+                * In ./includes/LinksUpdate.php doDumbUpdate is commented with:
+                * "Old inefficient update function"
+                * Probably need to call doUpdate instead.
+               */
                $linksUpdate->doDumbUpdate();
                $linksUpdate->fixBrokenLinks();
                $dbw->query("COMMIT");