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