Php – Zend Framework Performing Slow

PHPzend-framework

I'm working on a community based website using zend framework – but its so slow it takes a while for pages to load. I would like to know what aspects of the zend framework should I look into to ensure it runs much faster.

Any tips and help would be greatly appreciated 🙂


Nice advice – I took upon the database and indexed it from scratch – there werent any indexes to start with :\ but anyway the speed has improved a bit but its still rather slow. Is there anything else that I must be keeping an eye on right here?

Because I'm just assuming its something to do with the framework as when I first ran basic tutorial projects made using the framework – they were a bit slow as well.


Nice tips – had a look at the zend performance guide article. I'm not so sure where to put the code for caching table metadata though 🙁 [sorry for sounding like such a noob here] as mentioned at this link

Best Answer

The only way to know for sure where your bottlenecks are is doing deep profiling.

I use xdebug, combined with kcachegrind (part of kde for windows). It generates full call traces for every PHP script that is executed, which you can then inspect to find out which functions are taking up most of the time. No code changes necessary, so you can easily profile third-party libraries like Zend Framework.

Related Topic