Gadgets: add class version to Memcached key. This will help in avoid problems like we had with switches back and forth between 1.16 and 1.17 versions of this extension.

This commit is contained in:
Max Semenik 2011-04-02 15:36:59 +00:00
parent d720a2340f
commit 5c03dc8ff7

View file

@ -407,7 +407,7 @@ class Gadget {
if ( $gadgets !== null && $forceNewText === null ) return $gadgets;
wfProfileIn( __METHOD__ );
$key = wfMemcKey( 'gadgets-definition' );
$key = wfMemcKey( 'gadgets-definition', self::GADGET_CLASS_VERSION );
if ( $forceNewText === null ) {
//cached?