mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-09-24 02:39:48 +00:00
Merge "Clean up ObjectCache calls"
This commit is contained in:
commit
ba5a76adb5
|
@ -190,7 +190,7 @@ class ScribuntoHooks {
|
|||
static $cache;
|
||||
|
||||
if ( !$cache ) {
|
||||
$cache = ObjectCache::newAccelerator( CACHE_NONE );
|
||||
$cache = ObjectCache::getLocalServerInstance( CACHE_NONE );
|
||||
}
|
||||
|
||||
// To control the sampling rate, we keep a compact histogram of
|
||||
|
|
|
@ -315,7 +315,7 @@ abstract class Scribunto_LuaEngine extends ScribuntoEngineBase {
|
|||
static $cache = null;
|
||||
|
||||
if ( !$cache ) {
|
||||
$cache = ObjectCache::newAccelerator( array(), 'hash' );
|
||||
$cache = ObjectCache::getLocalServerInstance( 'hash' );
|
||||
}
|
||||
|
||||
$mtime = filemtime( $fileName );
|
||||
|
|
Loading…
Reference in a new issue