],
'cache' => [
'class' => 'yii\caching\FileCache',
- 'cachePath' => '@yii_app/runtime/cache',
],
'log' => [
'targets' => [
],
'cache' => [
'class' => 'yii\caching\FileCache',
- 'cachePath' => '@yii_app/runtime/cache',
],
'user' => [
'identityClass' => \yii_app\records\Admin::class, // 'app\models\User',
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,