* Fix bug for zentao init page very slow.

This commit is contained in:
songchenxuan
2023-08-09 00:23:59 +08:00
parent b8910c0fff
commit 835f16afff
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -155,6 +155,8 @@ class cron extends control
$crons = $this->cron->getCrons('nostop');
$parsedCrons = $this->cron->parseCron($crons);
/* Update last time. */
$this->cron->changeStatus(key($parsedCrons), 'normal', true);
$this->cron->logCron("The cron process created.\n");
$this->loadModel('common');
$startedTime = time();
+1
View File
@@ -84,6 +84,7 @@ class cronModel extends model
}
}
$this->dao->update(TABLE_CRON)->set('lastTime')->eq(date(DT_DATETIME1))->where('lastTime')->notZeroDate()->andWhere('status')->ne('stop')->exec();
return $parsedCrons;
}