From 7005d46ba1a1cc19ab843eac52ce43e34dea2811 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 14 Aug 2013 15:23:30 -0700 Subject: [PATCH] Spaces in memcached keys are annoying Change-Id: I2fe2befb4c142cddbcfb73bd71b88d333e804428 --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 6dd6d596db..4dd1713f7d 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -1150,7 +1150,7 @@ class ApiMain extends ApiBase { $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 ) { -- 2.20.1