From aa9ce52f47711d1162c9e01894b8857d5942d6a5 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Tue, 25 Jun 2019 16:15:49 -0500 Subject: [PATCH] Adjustment to DATABASE_TIMEOUT --- core/_install.php | 2 ++ core/sys_config.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/_install.php b/core/_install.php index a695c237..9e1a9adb 100644 --- a/core/_install.php +++ b/core/_install.php @@ -20,6 +20,8 @@ ob_start(); date_default_timezone_set('UTC'); +define("DATABASE_TIMEOUT", 10000); + ?> diff --git a/core/sys_config.php b/core/sys_config.php index 13b18d7e..a4d54fb6 100644 --- a/core/sys_config.php +++ b/core/sys_config.php @@ -27,7 +27,7 @@ function _d(string $name, $value): void } _d("DATABASE_DSN", null); // string PDO database connection details _d("DATABASE_KA", true); // string Keep database connection alive -_d("DATABASE_TIMEOUT", 10000); // string Keep database connection alive +_d("DATABASE_TIMEOUT", 10000);// int Time to wait for each statement to complete _d("CACHE_DSN", null); // string cache connection details _d("DEBUG", false); // boolean print various debugging details _d("DEBUG_SQL", false); // boolean dump SQL queries to data/sql.log