joomla/joomla-platform — pull request #1453 by eddieajau (2012-08-16 07:35:31+00:00)
Title: Allow database queries to always be counted

This change moves the query count out of the debug conditional, so that the number of queries the driver executes is always counted (meaning JDatabaseDriver::getCount is always available). The additional overhead would be negligible but allows permanent access to a useful statistic regardless of the debug setting but without the overhead of storing all the queries.