|
|
@ -581,9 +581,12 @@ foreach($search->get() as $document) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Delay next attempt |
|
|
|
// Delay next attempt |
|
|
|
sleep( |
|
|
|
if ($ftp->connection->attempts->delay) |
|
|
|
$ftp->connection->attempts->delay |
|
|
|
{ |
|
|
|
); |
|
|
|
sleep( |
|
|
|
|
|
|
|
$ftp->connection->attempts->delay |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} while ($connection === false); |
|
|
|
} while ($connection === false); |
|
|
@ -605,7 +608,10 @@ foreach($search->get() as $document) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Crawl queue delay |
|
|
|
// Crawl queue delay |
|
|
|
sleep( |
|
|
|
if ($config->cli->document->crawl->queue->limit) |
|
|
|
$config->cli->document->crawl->queue->limit |
|
|
|
{ |
|
|
|
); |
|
|
|
sleep( |
|
|
|
|
|
|
|
$config->cli->document->crawl->queue->limit |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |