Dealing with slow PHP and app performance issues can be quite challenging.
Once your app is up and running it still needs to be kept fast. Platform.sh offers a wide degree of flexibility in how PHP behaves, but that does mean you may need to take a few steps to ensure your site is running optimally.
The following recommendations are guidelines only. They're also listed in about the order to investigate them.
- Upgrade your PHP version to latest
- Optimize the FPM worker count
- Set OPcache preloading
- or optimize your code
In most cases, you'll want to use an application profiler like Blackfire to gather detailed data on all your app bottlenecks and fix them at the core.