(bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge
authorHuji <huji@users.mediawiki.org>
Fri, 22 Feb 2008 21:50:58 +0000 (21:50 +0000)
committerHuji <huji@users.mediawiki.org>
Fri, 22 Feb 2008 21:50:58 +0000 (21:50 +0000)
RELEASE-NOTES
maintenance/rebuildrecentchanges.inc

index 75d22a3..fc38ec4 100644 (file)
@@ -405,6 +405,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13004) Fix error on Postgres searches that return too many results.
 * (bug 10677) Add link to the file description page on the shared repository
 * (bug 13084) Increase size of source/destination filename fields in upload form
+* (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge
 
 == Parser changes in 1.12 ==
 
index 8b2c780..087c8de 100644 (file)
@@ -24,6 +24,15 @@ function rebuildRecentChangesTablePass1()
        print( "Loading from page and revision tables...\n" );
 
        global $wgRCMaxAge;
+
+       print( '$wgRCMaxAge=' . $wgRCMaxAge );
+       $days = $wgRCMaxAge / 24 / 3600;
+       if ( intval($days) == $days ) {
+                       print( " (" . $days . " days)\n" );
+       } else {
+                       print( " (approx. " .  intval($days) . " days)\n" );
+       }
+
        $cutoff = time() - $wgRCMaxAge;
        $dbw->insertSelect( 'recentchanges', array( 'page', 'revision' ),
                array(