clear() public method

Clears any caches necessary.
public clear ( string $cacheDir )
$cacheDir string The cache directory.
コード例 #1
0
 /**
  * @covers eZ\Bundle\EzPublishCoreBundle\Cache\Http\InstantCachePurger::clear
  */
 public function testClear()
 {
     $this->purgeClient->expects($this->once())->method('purgeAll');
     $purger = new InstantCachePurger($this->purgeClient);
     $purger->clear('cache/dir/');
 }
コード例 #2
0
 public function testClear()
 {
     $this->purgeClient->expects($this->once())->method('purgeAll');
     $purger = new InstantCachePurger($this->purgeClient, $this->contentService, $this->eventDispatcher);
     $purger->clear('cache/dir/');
 }