From de5f41d978bacb28307f26af0d887e40e1e6db55 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 19 Nov 2017 22:04:31 +0100 Subject: [PATCH] [Cache] Memcached options should ignore "lazy" --- src/Symfony/Component/Cache/Traits/MemcachedTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Cache/Traits/MemcachedTrait.php b/src/Symfony/Component/Cache/Traits/MemcachedTrait.php index 29b92647c9bd..82344fceaeba 100644 --- a/src/Symfony/Component/Cache/Traits/MemcachedTrait.php +++ b/src/Symfony/Component/Cache/Traits/MemcachedTrait.php @@ -130,7 +130,7 @@ public static function createConnection($servers, array $options = array()) } // set client's options - unset($options['persistent_id'], $options['username'], $options['password'], $options['weight']); + unset($options['persistent_id'], $options['username'], $options['password'], $options['weight'], $options['lazy']); $options = array_change_key_case($options, CASE_UPPER); $client->setOption(\Memcached::OPT_BINARY_PROTOCOL, true); $client->setOption(\Memcached::OPT_NO_BLOCK, true);