General performance tuning tips
Before we wrap up this final iteration, we'll briefly outline some other areas of consideration when working to tweak the performance of a Yii-based web application.
These more or less come straight from the Performance Tuning section of the Yii definitive guide, http://www.yiiframework.com/doc/guide/topics.performance. But it is good to restate them here for completeness and general awareness.
Using APC
Enabling the PHP APC extension is perhaps the easiest way to improve the overall performance of an application. The extension caches and optimizes PHP intermediate code and avoids the time spent in parsing PHP scripts for every incoming request.
Disabling debug mode
We discussed this earlier in the chapter, but it won't hurt to hear it again. Disabling debug mode is another easy way to improve performance and security. A Yii application runs in debug mode if the constant YII_DEBUG is defined as true in the main index.php entry script. Many components, including...