eZ\Publish\Core\MVC\Symfony\Cache\Http\LocalPurgeClient::purgeAll PHP Method

purgeAll() public method

Purges all content elements currently in cache.
public purgeAll ( )
    public function purgeAll()
    {
        $this->cacheStore->purgeAllContent();
    }

Usage Example

 /**
  * @covers eZ\Publish\Core\MVC\Symfony\Cache\Http\LocalPurgeClient::__construct
  * @covers eZ\Publish\Core\MVC\Symfony\Cache\Http\LocalPurgeClient::purgeAll
  */
 public function testPurgeAll()
 {
     $cacheStore = $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\Cache\\Http\\ContentPurger');
     $cacheStore->expects($this->once())->method('purgeAllContent');
     $purgeClient = new LocalPurgeClient($cacheStore);
     $purgeClient->purgeAll();
 }