Bypass libmemache 0.4 bug

This commit is contained in:
Romain Neutron
2012-02-17 20:40:16 +01:00
parent 097459abc8
commit ad1c168977
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ class MemcacheCache extends DoctrineMemcache implements Cache
public function flushAll()
{
return $this->memcache->flush();
return $this->getMemcache()->flush();
}
}

View File

@@ -197,7 +197,7 @@ class Core extends \Pimple
{
touch(__DIR__ . '/../../../tmp/cache_registry.yml');
}
$file = new \SplFileObject(__DIR__ . '/../../../tmp/cache_registry.yml');
$parser = new Core\Configuration\Parser\Yaml();
@@ -206,7 +206,7 @@ class Core extends \Pimple
if ($cacheManager->hasChange($cacheKey, $driverType))
{
$driver->deleteAll();
$driver->flushAll();
$cacheManager->save($cacheKey, $driverType);
}
};