From: fomichev Date: Wed, 2 Jul 2025 10:29:27 +0000 (+0300) Subject: Изменение логики работы задачи X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=697134c35f972510f7d710187cb1a3f5aabbf496;p=erp24_rep%2Fyii-erp24%2F.git Изменение логики работы задачи --- diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index 91a31866..3b782e65 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -1803,7 +1803,7 @@ class CronController extends Controller Yii::error(json_encode($log->getErrors(), JSON_UNESCAPED_UNICODE)); LogService::apiErrorLog(json_encode(["error_id" => 8, "error" => $log->getErrors()], JSON_UNESCAPED_UNICODE)); } - + $cache->delete($cacheKey); $service = new AutoPlannogrammaService(); $year = (int)$task['year']; $month = (int)$task['month']; diff --git a/erp24/controllers/CategoryPlanController.php b/erp24/controllers/CategoryPlanController.php index 65492e80..e4b8d846 100644 --- a/erp24/controllers/CategoryPlanController.php +++ b/erp24/controllers/CategoryPlanController.php @@ -645,7 +645,7 @@ class CategoryPlanController extends Controller { return $this->asJson(['status' => 'not_found']); } } - Yii::$app->cache->delete('apRecalculateTask'); + // Yii::$app->cache->delete('apRecalculateTask'); return $this->asJson([ 'status' => $task['status'], 'progress' => $task['progress'] ?? 0,