I just got this quite large CakePHP app (about 20k lines of code), which isn\'t very clean and there is no documentation at all. The app is running in production, but it has rea
You can set the DEBUG level in app/config/core.php
and see what is going on. The downside is that so can all your users. With debugging on you'll easily be able to see the slow queries. Barring that, turn on the SQL Slow Query Log and set the cutoff relatively low (because Cake likes to do many, many queries to answer seemingly simple questions).