From: Aleksey Filippov Date: Fri, 5 Sep 2025 11:03:50 +0000 (+0300) Subject: Правка включил кеширование схемы БД X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6499232835aba83244a29b929e0cda0dc7517025;p=erp24_rep%2Fyii-erp24%2F.git Правка включил кеширование схемы БД --- diff --git a/erp24/config/db.php b/erp24/config/db.php index de11f20a..0e54fdd6 100644 --- a/erp24/config/db.php +++ b/erp24/config/db.php @@ -17,9 +17,10 @@ return 1 == 1 ? [ ], // 'on afterOpen' => function($event) { $event->sender->createCommand("SET search_path TO public, erp24;")->execute(); }, // PostgreSQL -// 'charset' => 'utf8', -// 'enableSchemaCache' => true, -// 'schemaCacheDuration' => 300, + 'charset' => 'utf8', + 'enableSchemaCache' => true, + 'schemaCacheDuration' => 600, + 'schemaCache' => 'cache', ] : [ 'class' => yii\db\Connection::class, 'dsn' => strtr('mysql:host={host};port={port};dbname={dbname}', [