jobqueue: clean up JobQueueDB::getCacheKey() to use makeGlobalKey()
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 13 Oct 2018 07:14:38 +0000 (00:14 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 13 Oct 2018 07:14:38 +0000 (00:14 -0700)
Change-Id: I341720fda0d242c7822f78048cb49f63538d08bc

includes/jobqueue/JobQueueDB.php

index 0b85fbe..0ae106d 100644 (file)
@@ -787,10 +787,10 @@ class JobQueueDB extends JobQueue {
         * @return string
         */
        private function getCacheKey( $property ) {
-               list( $db, $prefix ) = wfSplitWikiID( $this->wiki );
                $cluster = is_string( $this->cluster ) ? $this->cluster : 'main';
 
-               return wfForeignMemcKey( $db, $prefix, 'jobqueue', $cluster, $this->type, $property );
+               return $this->cache->makeGlobalKey(
+                       'jobqueue', $this->wiki, $cluster, $this->type, $property );
        }
 
        /**