jenkins-bot has submitted this change and it was merged.

Change subject: Spaces in memcached keys are annoying
......................................................................


Spaces in memcached keys are annoying

Change-Id: I2fe2befb4c142cddbcfb73bd71b88d333e804428
---
M includes/api/ApiMain.php
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php
index 6dd6d59..4dd1713 100644
--- a/includes/api/ApiMain.php
+++ b/includes/api/ApiMain.php
@@ -1150,7 +1150,7 @@
                $this->setHelp();
                // Get help text from cache if present
                $key = wfMemcKey( 'apihelp', $this->getModuleName(),
-                       SpecialVersion::getVersion( 'nodb' ) );
+                       str_replace( ' ', '_', SpecialVersion::getVersion( 
'nodb' ) ) );
                if ( $wgAPICacheHelpTimeout > 0 ) {
                        $cached = $wgMemc->get( $key );
                        if ( $cached ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2fe2befb4c142cddbcfb73bd71b88d333e804428
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Demon <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to