From: fomichev Date: Wed, 2 Jul 2025 11:36:25 +0000 (+0300) Subject: Изменение логики работы задачи X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6ae8c05a20a0ec1c92031d541c205416f83fd207;p=erp24_rep%2Fyii-erp24%2F.git Изменение логики работы задачи --- diff --git a/erp24/config/console.php b/erp24/config/console.php index 660baa1d..7bedb5f5 100755 --- a/erp24/config/console.php +++ b/erp24/config/console.php @@ -55,7 +55,6 @@ $config = [ ], 'cache' => [ 'class' => 'yii\caching\FileCache', - 'cachePath' => '@yii_app/runtime/cache', ], 'log' => [ 'targets' => [ diff --git a/erp24/config/web.php b/erp24/config/web.php index 6e9ef864..a0d8fb45 100644 --- a/erp24/config/web.php +++ b/erp24/config/web.php @@ -55,7 +55,6 @@ $config = [ ], 'cache' => [ 'class' => 'yii\caching\FileCache', - 'cachePath' => '@yii_app/runtime/cache', ], 'user' => [ 'identityClass' => \yii_app\records\Admin::class, // 'app\models\User', diff --git a/erp24/controllers/CategoryPlanController.php b/erp24/controllers/CategoryPlanController.php index 3fed6dbc..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,