Clean up ObjectCache calls

Change-Id: I95b2d4d0f94a2e7f42372615ea9c612845502b30
This commit is contained in:
Aaron Schulz 2016-10-11 14:06:27 -07:00
parent 629f11d0dd
commit 3660ec17ba
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 );