Exemple #1
0
 public static function createJob(array $tags = array())
 {
     $clusterServerModel = new Model_ClusterServer();
     if (!($serverId = $clusterServerModel->fetchServerId())) {
         list($serverId, $lastCheckIn) = $clusterServerModel->checkIn();
     }
     $jobModel = new Model_ClusterClearCacheJob();
     $jobModel->create($serverId, $tags);
 }