* Fix bug for zentao init page very slow.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user