record history on background process

This commit is contained in:
yggverse 2024-07-19 21:51:47 +03:00
parent 71dc5dc431
commit 673b937d3d

View file

@ -244,11 +244,18 @@ class Page
$this->navbar->request->getValue()
);
// Save request in database
$this->container->browser->database->renewHistory(
$this->navbar->request->getValue(),
$this->title->getValue()
);
// Save request in database (on background)
$pid = pcntl_fork();
if ($pid === 0)
{
$this->container->browser->database->renewHistory(
$this->navbar->request->getValue(),
$this->title->getValue()
);
exit;
}
}
// Stop