__METHOD__
);
},
- [ 'pcTTL' => 10 ]
+ [ 'pcTTL' => $cache::TTL_PROC_LONG ]
);
}
*/
static function jobs() {
if ( !isset( self::$jobs ) ) {
- $dbr = wfGetDB( DB_SLAVE );
- self::$jobs = array_sum( JobQueueGroup::singleton()->getQueueSizes() );
+ try{
+ self::$jobs = array_sum( JobQueueGroup::singleton()->getQueueSizes() );
+ } catch ( JobQueueError $e ) {
+ self::$jobs = 0;
+ }
/**
* Zero rows still do single row read for row that doesn't exist,
* but people are annoyed by that