eZ\Publish\Core\MVC\Symfony\Cache\Http\InstantCachePurger::purge PHP Method

purge() public method

public purge ( $locationIds )
    public function purge($locationIds)
    {
        $this->purgeClient->purge((array) $locationIds);
        return $locationIds;
    }

Usage Example

 public function testPurge()
 {
     $locationIds = array(123, 456, 789);
     $this->purgeClient->expects($this->once())->method('purge')->with($locationIds)->will($this->returnArgument(0));
     $purger = new InstantCachePurger($this->purgeClient, $this->contentService, $this->eventDispatcher);
     $this->assertSame($locationIds, $purger->purge($locationIds));
 }