X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSiteStats.php;h=6c536ddc463efaac51e65e9f631db056663ecede;hb=7c987a0235607012fe90a3bc4f9e859aba9cc30b;hp=4908419906ae7b70c28b1615fcc54c679b1f21c9;hpb=0ad205e0e99389df9a9a79f9ac156227577ec929;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 4908419906..6c536ddc46 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -193,7 +193,7 @@ class SiteStats { __METHOD__ ); }, - [ 'pcTTL' => 10 ] + [ 'pcTTL' => $cache::TTL_PROC_LONG ] ); } @@ -202,7 +202,11 @@ class SiteStats { */ static function jobs() { if ( !isset( self::$jobs ) ) { - 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