Some fixes in cache, GET_LANGUAGE() is now memory-cached, min age configurable
[mailer.git] / inc / db / lib-mysql3.php
index 7b6f3fc915edfb020bb44a0ffc440401f77926df..dda331836a367bacc955cae726653cfa2b6d493e 100644 (file)
@@ -54,15 +54,15 @@ function SQL_QUERY($sql_string, $F, $L) {
 Query string:<br />
 ".$sql_string);
 
-       // Save last successfull query
-       $_CONFIG['db_last_query'] = $sql_string;
-
        // Ending time
        $querytimeAfter = array_sum(explode(' ', microtime()));
 
        // Calculate query time
        $queryTime = $querytimeAfter - $querytimeBefore;
 
+       // Save last successfull query
+       $_CONFIG['db_last_query'] = $sql_string;
+
        // Count this query
        if (!isset($_CONFIG['sql_count'])) $_CONFIG['sql_count'] = 0;
        $_CONFIG['sql_count']++;