Avoid using deprecated phpredis::delete() alias
[lhc/web/wiklou.git] / includes / jobqueue / JobQueueRedis.php
index b8a5ad2..ba00463 100644 (file)
@@ -451,7 +451,7 @@ LUA;
 
                $conn = $this->getConnection();
                try {
-                       $timestamp = $conn->get( $key ); // current last timestamp of this job
+                       $timestamp = $conn->get( $key ); // last known timestamp of such a root job
                        if ( $timestamp && $timestamp >= $params['rootJobTimestamp'] ) {
                                return true; // a newer version of this root job was enqueued
                        }
@@ -503,7 +503,7 @@ LUA;
                                $keys[] = $this->getQueueKey( $prop );
                        }
 
-                       $ok = ( $conn->delete( $keys ) !== false );
+                       $ok = ( $conn->del( $keys ) !== false );
                        $conn->sRem( $this->getGlobalKey( 's-queuesWithJobs' ), $this->encodeQueueName() );
 
                        return $ok;