Performance tuning CakePHP application

前端 未结 5 1920
南笙
南笙 2021-02-06 14:17

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

5条回答
  •  感情败类
    2021-02-06 15:06

    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).

提交回复
热议问题