|
|
@ -357,6 +357,8 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECOND |
|
|
|
$httpRequestsTimeTotal += $curl->getTotalTime(); |
|
|
|
$httpRequestsTimeTotal += $curl->getTotalTime(); |
|
|
|
|
|
|
|
|
|
|
|
// Update page rank |
|
|
|
// Update page rank |
|
|
|
|
|
|
|
if (CRAWL_PAGE_RANK_UPDATE) { |
|
|
|
|
|
|
|
|
|
|
|
// @TODO add common method |
|
|
|
// @TODO add common method |
|
|
|
|
|
|
|
|
|
|
|
$hostPageRank = 0; |
|
|
|
$hostPageRank = 0; |
|
|
@ -380,6 +382,7 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECOND |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Update registry |
|
|
|
// Update registry |
|
|
|
$db->updateHostPageRank($queueHostPage->hostPageId, $hostPageRank); |
|
|
|
$db->updateHostPageRank($queueHostPage->hostPageId, $hostPageRank); |
|
|
|