Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 15 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
UpdateFlaggedRevsQueryCache | |
0.00% |
0 / 9 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
execute | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | /** |
3 | * @ingroup Maintenance |
4 | */ |
5 | |
6 | use MediaWiki\Maintenance\Maintenance; |
7 | |
8 | if ( getenv( 'MW_INSTALL_PATH' ) ) { |
9 | $IP = getenv( 'MW_INSTALL_PATH' ); |
10 | } else { |
11 | $IP = __DIR__ . '/../../..'; |
12 | } |
13 | |
14 | require_once "$IP/maintenance/Maintenance.php"; |
15 | |
16 | class UpdateFlaggedRevsQueryCache extends Maintenance { |
17 | |
18 | public function __construct() { |
19 | parent::__construct(); |
20 | $this->addDescription( "Update special page query cache table" ); |
21 | $this->requireExtension( 'FlaggedRevs' ); |
22 | } |
23 | |
24 | /** |
25 | * @inheritDoc |
26 | */ |
27 | public function execute() { |
28 | $this->output( sprintf( '%-30s ', 'UnreviewedPages' ) ); |
29 | |
30 | $time1 = microtime( true ); |
31 | UnreviewedPages::updateQueryCache(); |
32 | $time2 = microtime( true ); |
33 | |
34 | $elapsed = ( $time2 - $time1 ); |
35 | $this->output( sprintf( "completed in %.2fs\n", $elapsed ) ); |
36 | } |
37 | } |
38 | |
39 | $maintClass = UpdateFlaggedRevsQueryCache::class; |
40 | require_once RUN_MAINTENANCE_IF_MAIN; |