}
public function loadFromQueue() {
+ global $wgVersion;
if ( !$this->queued ) {
return;
}
+ // A few more things to vary the cache on
+ $versions = array(
+ 'registration' => self::CACHE_VERSION,
+ 'mediawiki' => $wgVersion
+ );
+
// See if this queue is in APC
- $key = wfMemcKey( 'registration', md5( json_encode( $this->queued ) ), self::CACHE_VERSION );
+ $key = wfMemcKey(
+ 'registration',
+ md5( json_encode( $this->queued + $versions ) )
+ );
$data = $this->cache->get( $key );
if ( $data ) {
$this->exportExtractedData( $data );
) {
// Doesn't match, mark it as incompatible.
$incompatible[] = "{$info['name']} is not compatible with the current "
- . "MediaWiki core (version {$wgVersion}), it requires: ". $requires[self::MEDIAWIKI_CORE]
+ . "MediaWiki core (version {$wgVersion}), it requires: " . $requires[self::MEDIAWIKI_CORE]
. '.';
continue;
}