Index: trunk/phase3/includes/Article.php |
— | — | @@ -2403,12 +2403,11 @@ |
2404 | 2404 | $u = new LinksUpdate( $this->mTitle, $poutput ); |
2405 | 2405 | $u->doUpdate(); |
2406 | 2406 | |
2407 | | - if ( wfRunHooks( 'ArticleEditUpdatesDeleteFromRecentchanges', array( &$this ) ) ) { |
2408 | | - wfSeedRandom(); |
| 2407 | + if( wfRunHooks( 'ArticleEditUpdatesDeleteFromRecentchanges', array( &$this ) ) ) { |
2409 | 2408 | if ( 0 == mt_rand( 0, 99 ) ) { |
2410 | | - # Periodically flush old entries from the recentchanges table. |
| 2409 | + // Flush old entries from the `recentchanges` table; we do this on |
| 2410 | + // random requests so as to avoid an increase in writes for no good reason |
2411 | 2411 | global $wgRCMaxAge; |
2412 | | - |
2413 | 2412 | $dbw = wfGetDB( DB_MASTER ); |
2414 | 2413 | $cutoff = $dbw->timestamp( time() - $wgRCMaxAge ); |
2415 | 2414 | $recentchanges = $dbw->tableName( 'recentchanges' ); |