<?php
/**
- * Compress the text of a wiki
+ * Compress the text of a wiki.
*
- * @addtogroup Maintenance
- */
-
-/** */
-
-/**
* Usage:
*
* Non-wikimedia
* -b <begin-date> earliest date to check for uncompressed revisions
* -e <end-date> latest revision date to compress
* -s <start-id> the old_id to start from
- * -f <max-factor> the maximum ratio of compressed chunk bytes to uncompressed avg. revision bytes
- * -h <threshold> is a minimum number of KB, where <max-factor> cuts in
* --extdb <cluster> store specified revisions in an external cluster (untested)
*
+ * @file
+ * @ingroup Maintenance ExternalStorage
*/
$optionsWithArgs = array( 't', 'c', 's', 'f', 'h', 'extdb', 'endid', 'e' );
't' => 'concat',
'c' => 20,
's' => 0,
- 'f' => 5,
- 'h' => 100,
'b' => '',
'e' => '',
'extdb' => '',
$success = true;
if ( $options['t'] == 'concat' ) {
- $success = compressWithConcat( $options['s'], $options['c'], $options['f'], $options['h'], $options['b'],
+ $success = compressWithConcat( $options['s'], $options['c'], $options['b'],
$options['e'], $options['extdb'], $options['endid'] );
} else {
compressOldPages( $options['s'], $options['extdb'] );