From: Aaron Schulz Date: Fri, 9 Nov 2012 00:18:28 +0000 (-0800) Subject: Put a 15 minute limit on the cache key lock in nextJobDB.php X-Git-Tag: 1.31.0-rc.0~21695 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=b651a020e62a2510dc31c5e0e7f810e89228c930;p=lhc%2Fweb%2Fwiklou.git Put a 15 minute limit on the cache key lock in nextJobDB.php Change-Id: I673539d8f77bdbce61023c8113c0f8d7a3016a32 --- diff --git a/maintenance/nextJobDB.php b/maintenance/nextJobDB.php index 7a5ddacc09..875b93d5b4 100644 --- a/maintenance/nextJobDB.php +++ b/maintenance/nextJobDB.php @@ -48,7 +48,7 @@ class nextJobDB extends Maintenance { // regenerate the cache. Use any available stale cache if another // process is currently regenerating the pending DB information. if ( !$pendingDbInfo || mt_rand( 0, 100 ) == 0 ) { - $lock = $wgMemc->add( 'jobqueue:dbs:v3:lock', 1 ); // lock + $lock = $wgMemc->add( 'jobqueue:dbs:v3:lock', 1, 1800 ); // lock if ( $lock ) { $pendingDbInfo = array( 'pendingDBs' => $this->getPendingDbs(),