Closed badmansan closed 4 years ago
Sorry, this isn't issue. I was mistake in cache class declaration:
'cache' => [
'class' => \yii\redis\Connection::class,
'hostname' => env('REDIS_HOST'),
'port' => env('REDIS_PORT'),
'database' => env('REDIS_DB'),
],
must be
'cache' => [
'class' => \yii\redis\Cache::class,
'redis' => [
'hostname' => env('REDIS_HOST'),
'port' => env('REDIS_PORT'),
'database' => env('REDIS_DB'),
],
],
Code from
common/widgets/DbText.php
(for example):This code will cause warning:
I think this is because of array in key value instead of string. Redis cache executeCommand() can't work with multidimensional array.
Let's see at section
maintenance
infrontend/config/web.php
:return $app->keyStorage->get('frontend.maintenance') === 'enabled';
It call
instead of