8000 Merge branch '4.1' into 4.2 · gido/symfony@15fefd8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15fefd8

Browse files
Merge branch '4.1' into 4.2
* 4.1: [Cache] Fixed Memcached adapter doClear()to call flush()
2 parents 8816b56 + 5fc7d5e commit 15fefd8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Component/Cache/Tests/Adapter/MemcachedAdapterTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ public function provideDsnWithOptions()
193193
);
194194
}
195195

196+
public function testClear()
197+
{
198+
$this->assertTrue($this->createCachePool()->clear());
199+
}
200+
196201
public function testMultiServerDsn()
197202
{
198203
$dsn = 'memcached:?host[localhost]&host[localhost:12345]&host[/some/memcached.sock:]=3';

src/Symfony/Component/Cache/Traits/MemcachedTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ protected function doDelete(array $ids)
292292
*/
293293
protected function doClear($namespace)
294294
{
295-
return false;
295+
return '' === $namespace && $this->getClient()->flush();
296296
}
297297

298298
private function checkResultCode($result)

0 commit comments

Comments
 (0)
0