Quickest ways to speed up your YII application?

performance, php, yii

Solution

First of all, read Performance Tuning in the official guide. Additionally:

- Check HTTP caching.

- Update your PHP. Each major version gives you a good boost.

- Use redis (or at least database) for sessions (default PHP sessions are using files and are blocking).

- Consider using nginx instead (or with) apache. It serves content much better.

- Consider using CDN.

- Tweak your database.

These are all general things that are relatively easy to do. If it's not acceptable afterwards, do not assume. Profile.

Problem

I've just started using YII and managed to finish my first app. unfortunately, launch day is close and I want this app to be super fast. So far, the only way of speeding it up I've come across, is standard caching. What other ways are there to speed up my app?

Original source