X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fobjectcache%2FMemcachedPhpBagOStuff.php;h=6f0ba58820d985cc09c1ffb3d404010810f5fab8;hb=cfd1345a482548b6e31f114d5267874bae47212b;hp=69792ada563fddba522d820166ca3286c47560da;hpb=2a98737a0f59d25b5d3830050d5963b2ad7dab48;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/objectcache/MemcachedPhpBagOStuff.php b/includes/objectcache/MemcachedPhpBagOStuff.php index 69792ada56..6f0ba58820 100644 --- a/includes/objectcache/MemcachedPhpBagOStuff.php +++ b/includes/objectcache/MemcachedPhpBagOStuff.php @@ -59,7 +59,13 @@ class MemcachedPhpBagOStuff extends MemcachedBagOStuff { public function getMulti( array $keys, $flags = 0 ) { $callback = array( $this, 'encodeKey' ); - return $this->client->get_multi( array_map( $callback, $keys ) ); + $encodedResult = $this->client->get_multi( array_map( $callback, $keys ) ); + $result = array(); + foreach ( $encodedResult as $key => $value ) { + $key = $this->decodeKey( $key ); + $result[$key] = $value; + } + return $result; } /**