]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Правка включил кеширование схемы БД origin/feature_filippov_20250905_enable_db_cache
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Fri, 5 Sep 2025 11:03:50 +0000 (14:03 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Fri, 5 Sep 2025 11:03:50 +0000 (14:03 +0300)
erp24/config/db.php

index de11f20abf2fc9625e470f958a9c9a2f7f3b0be8..0e54fdd6b1994bc6065c579ef9419353f6877b7f 100644 (file)
@@ -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}', [