mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
record history on background process
This commit is contained in:
parent
71dc5dc431
commit
673b937d3d
1 changed files with 12 additions and 5 deletions
|
|
@ -244,11 +244,18 @@ class Page
|
||||||
$this->navbar->request->getValue()
|
$this->navbar->request->getValue()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Save request in database
|
// Save request in database (on background)
|
||||||
$this->container->browser->database->renewHistory(
|
$pid = pcntl_fork();
|
||||||
$this->navbar->request->getValue(),
|
|
||||||
$this->title->getValue()
|
if ($pid === 0)
|
||||||
);
|
{
|
||||||
|
$this->container->browser->database->renewHistory(
|
||||||
|
$this->navbar->request->getValue(),
|
||||||
|
$this->title->getValue()
|
||||||
|
);
|
||||||
|
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stop
|
// Stop
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue