It seems this code is no longer there @diosmosis ? https://github.com/matomo-org/matomo/pull/15619/files
Any chance we could add this back? Basically, after any climulti::request
we need to execute that code to prevent possible server gone away errors.
We also need to add the same disconnectDB
to runScheduledTasks
in CronArchive
to prevent server gone away errors.
public function runScheduledTasks()
{
$this->logSection("SCHEDULED TASKS");
if ($this->disableScheduledTasks) {
$this->logger->info("Scheduled tasks are disabled with --disable-scheduled-tasks");
return;
}
$this->disconnectDb()'
Not sure how this was removed, but wasn't on purpose. Will add it back.