From 4917f4ebfbee4a9a3867a7c0763ad1d9218ea921 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 4 Oct 2008 13:31:16 +0000 Subject: [PATCH] Fix for db_hits while in install-mode, thanks to AndreasJung again. :) --- inc/databases.php | 2 +- inc/db/lib-mysql3.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 6f22e86e11..e94cd1ec3b 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "446"); +define('CURR_SVN_REVISION', "447"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index fe033aeb96..0f18ac383c 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -197,11 +197,11 @@ function SQL_CLOSE(&$link, $F, $L) { // Skip double close return false; } // END - if - - // Add new hits - $_CONFIG['db_hits'] += $_CONFIG['db_hits_run']; //* DEBUG: */ echo "DB=".$_CONFIG['db_hits'].",CACHE=".$_CONFIG['cache_hits']."
\n"; if ((GET_EXT_VERSION("cache") >= "0.0.7") && (isset($_CONFIG['db_hits'])) && (isset($_CONFIG['cache_hits'])) && (is_object($cacheInstance))) { + // Add new hits + $_CONFIG['db_hits'] += $_CONFIG['db_hits_run']; + // Update counter for db/cache UPDATE_CONFIG(array("db_hits", "cache_hits"), array(bigintval($_CONFIG['db_hits']), bigintval($_CONFIG['cache_hits']))); } // END - if -- 2.30.2