Fix r56091: cache URLs with and without ?version separately

This commit is contained in:
Roan Kattouw 2009-09-17 15:47:44 +00:00
parent f884ded633
commit 87d401f2e6

View 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 )