Merge "Clean up ObjectCache calls"

This commit is contained in:
jenkins-bot 2016-10-11 21:45:33 +00:00 committed by Gerrit Code Review
commit ba5a76adb5
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 );