Browse Source

record history on background process

PHP-GTK3
yggverse 4 months ago
parent
commit
673b937d3d
  1. 17
      src/Entity/Browser/Container/Page.php

17
src/Entity/Browser/Container/Page.php

@ -244,11 +244,18 @@ class Page @@ -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

Loading…
Cancel
Save