mirror of
https://github.com/YGGverse/Yo.git
synced 2025-03-13 05:41:18 +00:00
reset index time
This commit is contained in:
parent
722de9175a
commit
3a28bf5967
@ -156,8 +156,9 @@ foreach($index->search('')
|
|||||||
// Update index time anyway and set reset code to 404
|
// Update index time anyway and set reset code to 404
|
||||||
$index->updateDocument(
|
$index->updateDocument(
|
||||||
[
|
[
|
||||||
'time' => time(),
|
'time' => time(),
|
||||||
'code' => 404
|
'code' => 200,
|
||||||
|
'index' => 0
|
||||||
],
|
],
|
||||||
$document->getId()
|
$document->getId()
|
||||||
);
|
);
|
||||||
@ -207,8 +208,8 @@ foreach($index->search('')
|
|||||||
|
|
||||||
$index->updateDocument(
|
$index->updateDocument(
|
||||||
[
|
[
|
||||||
'code' => 200,
|
|
||||||
'time' => time(),
|
'time' => time(),
|
||||||
|
'code' => 200,
|
||||||
'index' => 0
|
'index' => 0
|
||||||
],
|
],
|
||||||
$document->getId()
|
$document->getId()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user