Fix r56091: cache URLs with and without ?version separately
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 17 Sep 2009 15:47:44 +0000 (15:47 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 17 Sep 2009 15:47:44 +0000 (15:47 +0000)
includes/api/ApiMain.php

index 779a83c..63f90da 100644 (file)
@@ -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 )