From: fomichev Date: Wed, 2 Jul 2025 10:31:32 +0000 (+0300) Subject: Изменение логики работы задачи X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5a373f3f96108bbdb925ec998bfa580709a6562a;p=erp24_rep%2Fyii-erp24%2F.git Изменение логики работы задачи --- diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index 3b782e65..f33a37a2 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); + //$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 e4b8d846..65492e80 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,