} // END - if
// Count DB hits
- if (!isStatsEntrySet('db_hits_run')) {
+ if (!isStatsEntrySet('db_hits')) {
// Count in dummy variable
- setStatsEntry('db_hits_run', 1);
+ setStatsEntry('db_hits', 1);
} else {
// Count to config array
- incrementStatsEntry('db_hits_run');
+ incrementStatsEntry('db_hits');
}
// Return the result
// Destroy cache
unset($GLOBALS['sql_link_res']);
- // Move stats
- incrementStatsEntry('db_hits', getStatsEntry('db_hits_run'));
-
// Return the result
return $close;
}