(bug 13438) Make Special:MIMESearch less expensive. Needs some benchmarking to see...
[mediawiki.git] / maintenance / showJobs.php
blob7d2855efca4a33d9a040218f21d82771501c1af8
1 <?php
2 /**
3 * Based on runJobs.php
5 * @file
6 * @ingroup Maintenance
7 * @author Tim Starling
8 * @author Ashar Voultoiz
9 */
10 require_once( 'commandLine.inc' );
11 require_once( "$IP/includes/JobQueue.php" );
12 require_once( "$IP/includes/FakeTitle.php" );
14 // Trigger errors on inappropriate use of $wgTitle
15 $wgTitle = new FakeTitle;
17 $dbw = wfGetDB( DB_MASTER );
18 $count = $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' );
19 print $count."\n";