ZF2 Optimize for high traffic

后端 未结 5 671
清酒与你
清酒与你 2020-12-12 15:17

My ZF2 application seems to be extremely slow when more than 3 users are using it at the same time.

I profile my code with xdebug and webgrind and non of my function

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 15:44

    the ZF2 classmap generator will give you a big boost if you have a large project:

    http://framework.zend.com/manual/2.0/en/modules/zend.loader.classmap-generator.html

    Alternatively if you are using composer (you should do) then you can use composer to generate the classmap for all your modules and dependdencies too which is even better:

    php composer.phar install --optimize-autoloader
    
    php composer.phar update --optimize-autoloader
    

提交回复
热议问题