From b651a020e62a2510dc31c5e0e7f810e89228c930 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 8 Nov 2012 16:18:28 -0800 Subject: [PATCH] Put a 15 minute limit on the cache key lock in nextJobDB.php Change-Id: I673539d8f77bdbce61023c8113c0f8d7a3016a32 --- maintenance/nextJobDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- 2.20.1