Any ideas?
On Sep 3, 2:18 pm, Aaron Shafovaloff [EMAIL PROTECTED] wrote:
How do I, from a controller, count the number of queries made? I would
like to log the count of queries without using the table that debug=2
prints out.
--~--~-~--~~~---~--~~
You received
From controller:
Configure::write('debug', 2);
$db = ConnectionManager::getDataSource('default');
$queryCount = $db-_queriesCnt;
Configure::write('debug', 1);
(dirty...)
On Sep 4, 10:05 am, Aaron Shafovaloff [EMAIL PROTECTED] wrote:
Any ideas?
On Sep 3, 2:18 pm, Aaron Shafovaloff [EMAIL
How do I, from a controller, count the number of queries made? I would
like to log the count of queries without using the table that debug=2
prints out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.