jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/403860 )

Change subject: wfMemcKey (deprecated in MW 1.30) -> makeKey() on a BagOStuff 
instance
......................................................................


wfMemcKey (deprecated in MW 1.30) -> makeKey() on a BagOStuff instance

Change-Id: I62960014189aa608465e1a0c858f3683525a94cb
---
M includes/RandomGameUnit.class.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  SamanthaNguyen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/RandomGameUnit.class.php 
b/includes/RandomGameUnit.class.php
index f452ef5..ab445ee 100644
--- a/includes/RandomGameUnit.class.php
+++ b/includes/RandomGameUnit.class.php
@@ -73,7 +73,7 @@
                        case 'quiz':
                                $quiz = array();
                                // Try cache
-                               $key = wfMemcKey( 'quiz', 'order', 'q_id', 
'count', $count );
+                               $key = $wgMemc->makeKey( 'quiz', 'order', 
'q_id', 'count', $count );
                                $data = $wgMemc->get( $key );
                                if ( $data ) {
                                        wfDebugLog( 'RandomGameUnit', "Got quiz 
list ($count) from cache" );
@@ -107,7 +107,7 @@
                        case 'picgame':
                                // Try cache
                                $pics = array();
-                               $key = wfMemcKey( 'picgame', 'order', 'q_id', 
'count', $count );
+                               $key = $wgMemc->makeKey( 'picgame', 'order', 
'q_id', 'count', $count );
                                $data = $wgMemc->get( $key );
                                if ( $data ) {
                                        wfDebugLog( 'RandomGameUnit', "Got 
picture game list ($count) ordered by id from cache" );

-- 
To view, visit https://gerrit.wikimedia.org/r/403860
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I62960014189aa608465e1a0c858f3683525a94cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RandomGameUnit
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
Gerrit-Reviewer: SamanthaNguyen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to