mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Don't use deprecated wfMemcKey() or wfGlobalCacheKey()
Change-Id: I7fe5a45226a92ef19c25790a800a7ae7b7a3a57a
This commit is contained in:
parent
f5a195a3db
commit
82584edd0e
|
@ -22,8 +22,8 @@ class ApiScribuntoConsole extends ApiBase {
|
|||
$sessionId = mt_rand( 0, 0x7fffffff );
|
||||
}
|
||||
|
||||
$sessionKey = wfMemcKey( 'scribunto-console', $this->getUser()->getId(), $sessionId );
|
||||
$cache = ObjectCache::getInstance( CACHE_ANYTHING );
|
||||
$sessionKey = $cache->makeKey( 'scribunto-console', $this->getUser()->getId(), $sessionId );
|
||||
$session = null;
|
||||
$sessionIsNew = false;
|
||||
if ( $params['session'] ) {
|
||||
|
|
|
@ -345,7 +345,7 @@ abstract class Scribunto_LuaEngine extends ScribuntoEngineBase {
|
|||
throw new MWException( 'Lua file does not exist: ' . $fileName );
|
||||
}
|
||||
|
||||
$cacheKey = wfGlobalCacheKey( __CLASS__, $fileName );
|
||||
$cacheKey = $cache->makeGlobalKey( __CLASS__, $fileName );
|
||||
$fileData = $cache->get( $cacheKey );
|
||||
|
||||
$code = false;
|
||||
|
|
Loading…
Reference in a new issue