Browse Source

not wait for cache record

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

8
src/Abstract/Model/Connection.php

@ -247,6 +247,11 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
public function cache( public function cache(
string $request string $request
): void ): void
{
// Not wait for database record
$pid = pcntl_fork();
if ($pid === 0)
{ {
$this->_database->renewCache( $this->_database->renewCache(
$request, $request,
@ -256,6 +261,9 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
$this->getTooltip(), $this->getTooltip(),
$this->getData() $this->getData()
); );
exit;
}
} }
public function reset(): void public function reset(): void

Loading…
Cancel
Save