objectcache: detect default getWithSetCallback() set options
[lhc/web/wiklou.git] / includes / ServiceWiring.php
index c2197a6..beefb33 100644 (file)
@@ -52,7 +52,10 @@ return [
                );
                $class = MWLBFactory::getLBFactoryClass( $lbConf );
 
-               return new $class( $lbConf );
+               $instance = new $class( $lbConf );
+               MWLBFactory::setCacheUsageCallbacks( $instance, $services );
+
+               return $instance;
        },
 
        'DBLoadBalancer' => function( MediaWikiServices $services ) {