Skip to content

Commit

Permalink
El cron ahora envía el buffer de salida varias veces.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed Dec 18, 2023
1 parent 486689e commit f15f53e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Core/Controller/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public function run(): void
echo PHP_EOL . PHP_EOL . Tools::lang()->trans('starting-cron');
Tools::log('cron')->notice('starting-cron');

ob_flush();

// ejecutamos el cron de cada plugin
$this->runPlugins();

Expand Down Expand Up @@ -90,6 +92,8 @@ protected function runPlugins(): void
Tools::log()->error($ex->getMessage());
}

ob_flush();

// si no se está ejecutando en modo cli y lleva más de 20 segundos, se detiene
if (PHP_SAPI != 'cli' && Kernel::getExecutionTime() > 20) {
break;
Expand Down

0 comments on commit f15f53e

Please sign in to comment.