8 public function __construct()
10 $this->gmclient = new \GearmanClient();
11 $this->gmclient->addServer('127.0.0.1');
14 public function addToProcessList($linkUrl, $actions)
17 "Queuing for processing: $linkUrl"
18 . ' (' . implode(',', $actions) . ')'
21 $this->gmclient->doBackground(
22 $GLOBALS['phinde']['queuePrefix'] . 'phinde_process',
26 'actions' => $actions,
30 if ($this->gmclient->returnCode() != GEARMAN_SUCCESS) {
32 'Error queueing URL processing for '
34 . 'Error code: ' . $this->gmclient->returnCode()