* Add refresh interval for refreshStat.

This commit is contained in:
王怡栋
2024-03-27 17:25:27 +08:00
parent 6a23e3ccd6
commit fbd7fdb9bb
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -1323,6 +1323,7 @@ class programModel extends model
{
$updateTime = zget($this->app->config->global, 'projectStatsTime', '');
$now = helper::now();
if(time() - strtotime($updateTime) < $this->config->program->refreshInterval && !$refreshAll) return;
/*
* If projectStatsTime is before two weeks ago, refresh all executions directly.