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 | if ( getenv( 'MW_INSTALL_PATH' ) ) { |
6 | $IP = getenv( 'MW_INSTALL_PATH' ); |
7 | } else { |
8 | $IP = __DIR__ . '/../../..'; |
9 | } |
10 | |
11 | require_once "$IP/maintenance/Maintenance.php"; |
12 | |
13 | class UpdateFlaggedRevsQueryCache extends Maintenance { |
14 | |
15 | public function __construct() { |
16 | parent::__construct(); |
17 | $this->addDescription( "Update special page query cache table" ); |
18 | $this->requireExtension( 'FlaggedRevs' ); |
19 | } |
20 | |
21 | /** |
22 | * @inheritDoc |
23 | */ |
24 | public function execute() { |
25 | $this->output( sprintf( '%-30s ', 'UnreviewedPages' ) ); |
26 | |
27 | $time1 = microtime( true ); |
28 | UnreviewedPages::updateQueryCache(); |
29 | $time2 = microtime( true ); |
30 | |
31 | $elapsed = ( $time2 - $time1 ); |
32 | $this->output( sprintf( "completed in %.2fs\n", $elapsed ) ); |
33 | } |
34 | } |
35 | |
36 | $maintClass = UpdateFlaggedRevsQueryCache::class; |
37 | require_once RUN_MAINTENANCE_IF_MAIN; |