From 4c78a5245f31a52edfcbf2f754902047261fdfff Mon Sep 17 00:00:00 2001 From: Brian Huisman Date: Tue, 12 Sep 2023 10:44:14 -0400 Subject: [PATCH] Use REPLACE INTO for resiliency --- orcinus/crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orcinus/crawler.php b/orcinus/crawler.php index ae78dc2..6c7345d 100644 --- a/orcinus/crawler.php +++ b/orcinus/crawler.php @@ -907,7 +907,7 @@ $insertTemp = $_DDATA['pdo']->prepare( ;' ); $insertNotModified = $_DDATA['pdo']->prepare( - 'INSERT INTO `'.$_DDATA['tbprefix'].'crawltemp` ( + 'REPLACE INTO `'.$_DDATA['tbprefix'].'crawltemp` ( `url`, `url_sort`, `title`, `description`, `keywords`, `category`, `weighted`, `links`, `content`, `content_mime`, `content_charset`, `content_checksum`, `status`, `flag_unlisted`, `flag_updated`,