X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Flbfactory%2FLBFactory.php;h=c891fb6ba7f99cbd3285285ab642da1a8c620ef5;hp=3567204a82e00af437e79b2b63564a87de6ccd0b;hb=e7720b8f8e09287384ddee271641d1b1721318bb;hpb=16a9c7076f5eb5279d6eb1384751a08a4e33f532;ds=sidebyside diff --git a/includes/libs/rdbms/lbfactory/LBFactory.php b/includes/libs/rdbms/lbfactory/LBFactory.php index 3567204a82..c891fb6ba7 100644 --- a/includes/libs/rdbms/lbfactory/LBFactory.php +++ b/includes/libs/rdbms/lbfactory/LBFactory.php @@ -55,7 +55,7 @@ abstract class LBFactory implements ILBFactory { /** @var BagOStuff */ protected $srvCache; /** @var BagOStuff */ - protected $memCache; + protected $memStash; /** @var WANObjectCache */ protected $wanCache; @@ -93,7 +93,7 @@ abstract class LBFactory implements ILBFactory { } $this->srvCache = isset( $conf['srvCache'] ) ? $conf['srvCache'] : new EmptyBagOStuff(); - $this->memCache = isset( $conf['memCache'] ) ? $conf['memCache'] : new EmptyBagOStuff(); + $this->memStash = isset( $conf['memStash'] ) ? $conf['memStash'] : new EmptyBagOStuff(); $this->wanCache = isset( $conf['wanCache'] ) ? $conf['wanCache'] : WANObjectCache::newEmpty(); @@ -435,7 +435,7 @@ abstract class LBFactory implements ILBFactory { } $this->chronProt = new ChronologyProtector( - $this->memCache, + $this->memStash, [ 'ip' => $this->requestInfo['IPAddress'], 'agent' => $this->requestInfo['UserAgent'], @@ -530,7 +530,7 @@ abstract class LBFactory implements ILBFactory { $prefix ); - $this->forEachLB( function( ILoadBalancer $lb ) use ( $prefix ) { + $this->forEachLB( function ( ILoadBalancer $lb ) use ( $prefix ) { $lb->setDomainPrefix( $prefix ); } ); }