Browse Source

fix status code reset #13

main
yggverse 8 months ago
parent
commit
8c9ef3bd5d
  1. 4
      src/cli/document/crawl.php

4
src/cli/document/crawl.php

@ -174,11 +174,11 @@ foreach($index->search('') @@ -174,11 +174,11 @@ foreach($index->search('')
);
}
// Update index time anyway and set reset code to 404
// Update index time anyway and reset code to 404
$index->updateDocument(
[
'time' => time(),
'code' => 200,
'code' => 404,
'index' => 0
],
$document->getId()

Loading…
Cancel
Save