For those out there using the CakePHP framework to create your applications, you might be interested in these quick tips from Juan Basso on the Zumba Engineering Blog for both the architecture and actual code to optimize the performance of the app.
Our site and system has a lot of throughput and it make us use more instances and try to reduce the load in every part. It makes the company happy (save money) and also make the customer happy (faster load). On this article I will go over few things in terms of architecture and some code changes/strategies that could make your application faster as well.
Some of the recommendations include:
- Installing the APC/opcode caching to help save execution time
- Avoiding as many network requests as possible
- Use local file/data caching
- Using the "requestAction" inside controllers with its built-in caching