Index: trunk/extensions/FlaggedRevs/maintenance/purgeReviewablePages.inc |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | echo "There are no reviewable namespaces ... nothing to purge.\n"; |
12 | 12 | return; |
13 | 13 | } |
14 | | - $BATCH_SIZE = 500; |
| 14 | + $BATCH_SIZE = 1000; |
15 | 15 | $start = $db->selectField( 'page', 'MIN(page_id)', false, __FUNCTION__ ); |
16 | 16 | $end = $db->selectField( 'page', 'MAX(page_id)', false, __FUNCTION__ ); |
17 | 17 | if ( is_null( $start ) || is_null( $end ) ) { |
— | — | @@ -30,11 +30,11 @@ |
31 | 31 | 'page_namespace' => $wgFlaggedRevsNamespaces ), |
32 | 32 | __FUNCTION__ |
33 | 33 | ); |
34 | | - # Go through and protect each page... |
| 34 | + # Go through and append each purgeable page... |
35 | 35 | foreach ( $res as $row ) { |
36 | 36 | $title = Title::newFromRow( $row ); |
37 | 37 | $fa = FlaggedArticle::getTitleInstance( $title ); |
38 | | - if ( $fa->isReviewable( FR_MASTER ) ) { |
| 38 | + if ( $fa->isReviewable() ) { |
39 | 39 | # Need to purge this page - add to list |
40 | 40 | fwrite( $fileHandle, $title->getPrefixedDBKey() . "\n" ); |
41 | 41 | $count++; |