X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueGroup.php;h=4609d2d37e96dbc0949c450479cf293821565d2e;hb=6ae9367cddf8565c948f4d9458b07bb688f2ddc2;hp=a702d590494fdd6df76f92c8a2fd04d459aa78f8;hpb=bbe58340d3a9de8d21282a4732faa924192ffec6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueueGroup.php b/includes/jobqueue/JobQueueGroup.php index a702d59049..4609d2d37e 100644 --- a/includes/jobqueue/JobQueueGroup.php +++ b/includes/jobqueue/JobQueueGroup.php @@ -394,7 +394,11 @@ class JobQueueGroup { return $value['v']; } else { $value = $wgConf->getConfig( $this->wiki, $name ); - $cache->set( $key, array( 'v' => $value ), 86400 + mt_rand( 0, 86400 ) ); + $cache->set( + $key, + array( 'v' => $value ), + $cache::TTL_DAY + mt_rand( 0, $cache::TTL_DAY ) + ); return $value; }