cache connection data on browser close only

This commit is contained in:
yggverse 2024-07-26 18:36:12 +03:00
parent 1cb3db9923
commit 48c682459d
6 changed files with 44 additions and 66 deletions

View file

@ -244,27 +244,6 @@ abstract class Connection implements \Yggverse\Yoda\Interface\Model\Connection
);
}
public function cache(
string $request
): void
{
$pid = pcntl_fork(); // not wait
if ($pid === 0)
{
$this->_database->renewCache(
$request,
$this->getMime(),
$this->getTitle(),
$this->getSubtitle(),
$this->getTooltip(),
$this->getData()
);
exit;
}
}
public function reset(): void
{
$this->_pool->reset();