mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
disable document autodelete
This commit is contained in:
parent
1bd3029556
commit
34fe26fcf9
1 changed files with 2 additions and 0 deletions
|
|
@ -213,6 +213,7 @@ foreach($index->search('')
|
|||
if ($code = curl_getinfo($request, CURLINFO_HTTP_CODE))
|
||||
{
|
||||
// Delete deprecated document from index as HTTP code still not 200
|
||||
/*
|
||||
if ($code != 200 && !empty($data['code']) && $data['code'] != 200)
|
||||
{
|
||||
$index->deleteDocument(
|
||||
|
|
@ -221,6 +222,7 @@ foreach($index->search('')
|
|||
|
||||
continue;
|
||||
}
|
||||
*/
|
||||
|
||||
$data['code'] = $code;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue