mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
not wait for cache record
This commit is contained in:
parent
5b020095a3
commit
801b400b6c
1 changed files with 16 additions and 8 deletions
|
|
@ -248,14 +248,22 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
|
|||
string $request
|
||||
): void
|
||||
{
|
||||
$this->_database->renewCache(
|
||||
$request,
|
||||
$this->getMime(),
|
||||
$this->getTitle(),
|
||||
$this->getSubtitle(),
|
||||
$this->getTooltip(),
|
||||
$this->getData()
|
||||
);
|
||||
// Not wait for database record
|
||||
$pid = pcntl_fork();
|
||||
|
||||
if ($pid === 0)
|
||||
{
|
||||
$this->_database->renewCache(
|
||||
$request,
|
||||
$this->getMime(),
|
||||
$this->getTitle(),
|
||||
$this->getSubtitle(),
|
||||
$this->getTooltip(),
|
||||
$this->getData()
|
||||
);
|
||||
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
public function reset(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue