From 87d401f2e668168bf80f90eb6c93655f5445a41f Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 17 Sep 2009 15:47:44 +0000 Subject: [PATCH] Fix r56091: cache URLs with and without ?version separately --- includes/api/ApiMain.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 779a83cbf1..63f90dab43 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -559,7 +559,8 @@ class ApiMain extends ApiBase { $this->mPrinter->setHelp(); // Get help text from cache if present $key = wfMemcKey( 'apihelp', $this->getModuleName(), - SpecialVersion::getVersion( 'nodb' ) ); + SpecialVersion::getVersion( 'nodb' ). + $this->getMain()->getShowVersions() ); if ( $wgAPICacheHelp ) { $cached = $wgMemc->get( $key ); if ( $cached ) -- 2.20.1