diff --git a/common/Hooks.php b/common/Hooks.php index b6582a49..baccde34 100644 --- a/common/Hooks.php +++ b/common/Hooks.php @@ -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 diff --git a/engines/LuaCommon/LuaCommon.php b/engines/LuaCommon/LuaCommon.php index 4f6e536e..9de4784e 100644 --- a/engines/LuaCommon/LuaCommon.php +++ b/engines/LuaCommon/LuaCommon.php @@ -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 );