From: Roland Häder Date: Sat, 4 Oct 2008 13:31:16 +0000 (+0000) Subject: Fix for db_hits while in install-mode, thanks to AndreasJung again. :) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4917f4ebfbee4a9a3867a7c0763ad1d9218ea921;p=mailer.git Fix for db_hits while in install-mode, thanks to AndreasJung again. :) --- 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