From 1249e8d29ca7a92d8fa80bed0447b49b9d452005 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 2 Aug 2023 21:22:31 +0300 Subject: [PATCH] fix CRAWL_PAGE_RANK_UPDATE condition --- crontab/crawler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crontab/crawler.php b/crontab/crawler.php index f302bb4..f631971 100644 --- a/crontab/crawler.php +++ b/crontab/crawler.php @@ -382,10 +382,10 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECOND } } } - } - // Update registry - $db->updateHostPageRank($queueHostPage->hostPageId, $hostPageRank); + // Update registry + $db->updateHostPageRank($queueHostPage->hostPageId, $hostPageRank); + } // Update page index anyway, with the current time and http code $hostPagesProcessed += $db->updateHostPageCrawlQueue($queueHostPage->hostPageId, time(), $curl->getCode(), $curl->getSizeDownload());