mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
cache connection data on browser close only
This commit is contained in:
parent
1cb3db9923
commit
48c682459d
6 changed files with 44 additions and 66 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue