Browse Source

not wait for cache record

PHP-GTK3
yggverse 4 months ago
parent
commit
801b400b6c
  1. 24
      src/Abstract/Model/Connection.php

24
src/Abstract/Model/Connection.php

@ -248,14 +248,22 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
string $request string $request
): void ): void
{ {
$this->_database->renewCache( // Not wait for database record
$request, $pid = pcntl_fork();
$this->getMime(),
$this->getTitle(), if ($pid === 0)
$this->getSubtitle(), {
$this->getTooltip(), $this->_database->renewCache(
$this->getData() $request,
); $this->getMime(),
$this->getTitle(),
$this->getSubtitle(),
$this->getTooltip(),
$this->getData()
);
exit;
}
} }
public function reset(): void public function reset(): void

Loading…
Cancel
Save