dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't magically make MediaWiki\Widget classes infusable
[lhc/web/wiklou.git]
/
includes
/
SiteStats.php
diff --git
a/includes/SiteStats.php
b/includes/SiteStats.php
index
acd5262
..
6c536dd
100644
(file)
--- a/
includes/SiteStats.php
+++ b/
includes/SiteStats.php
@@
-193,7
+193,7
@@
class SiteStats {
__METHOD__
);
},
__METHOD__
);
},
- [ 'pcTTL' =>
10
]
+ [ 'pcTTL' =>
$cache::TTL_PROC_LONG
]
);
}
);
}
@@
-202,8
+202,11
@@
class SiteStats {
*/
static function jobs() {
if ( !isset( self::$jobs ) ) {
*/
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
/**
* Zero rows still do single row read for row that doesn't exist,
* but people are annoyed by that