mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Bypass libmemache 0.4 bug
This commit is contained in:
@@ -24,7 +24,7 @@ class MemcacheCache extends DoctrineMemcache implements Cache
|
||||
|
||||
public function flushAll()
|
||||
{
|
||||
return $this->memcache->flush();
|
||||
return $this->getMemcache()->flush();
|
||||
}
|
||||
|
||||
}
|
@@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user