diff --git a/composer.json b/composer.json index ad99240..c08cdb4 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,9 @@ "gemorroj/archive7z": "^5.7", "npm-asset/viewerjs": "^1.11", "npm-asset/plyr": "^3.7", - "ext-fileinfo": "*" + "ext-fileinfo": "*", + "npm-asset/ace-builds": "^1.32", + "yiisoft/yii2-redis": "^2.0" }, "require-dev": { "yiisoft/yii2-debug": "~2.1.0", diff --git a/config/web.php b/config/web.php index 60f5d88..51cf99e 100644 --- a/config/web.php +++ b/config/web.php @@ -18,8 +18,11 @@ $config = [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => '9vuTNyfQqTOWY8fhAajrAhOfX_uaZqZZ', ], +// 'cache' => [ +// 'class' => 'yii\caching\FileCache', +// ], 'cache' => [ - 'class' => 'yii\caching\FileCache', + 'class' => 'yii\redis\Cache', ], 'user' => [ 'identityClass' => 'app\models\User', @@ -44,6 +47,15 @@ $config = [ ], ], ], + 'session' => [ + 'class' => 'yii\redis\Session', + ], + 'redis' => [ + 'class' => 'yii\redis\Connection', + 'hostname' => 'localhost', + 'port' => 6379, + 'database' => 0, + ], 'db' => $db, /* 'urlManager' => [