コード例 #1
0
 public function purgeAction()
 {
     $domain = $this->params('domain');
     $this->settingsService->purge($domain);
     return sprintf("\nCache purged for domain %s\n\n", $domain);
 }
コード例 #2
0
 public function testPurgeCache()
 {
     $this->service->expects($this->once())->method('send')->with(array('a' => 'fpurge_ts', 'z' => 'domain.com', 'v' => 1));
     $this->service->purge('domain.com');
 }