문제

Is there any configuration for improving performance of symfony2 by eaccelerator? And so is there any configuration for using eaccelerator to take advantage of doctrine "Query Cache,Result Cache,Metadata Cache"?

도움이 되었습니까?

해결책

It's likely possible to use eAccelerator with Symfony2 and Doctrine, however there are issues you would need to resolve:

  1. Eaccelerator strips doc blocks by default, making Symfony/Doctrine pretty much non functional

  2. To see valuable performance gains with Symfony2 you would need to create an eAccelerator ClassLoader. You'll find most of the overhead in Symfony comes from file_exists calls in the autoloader if you don't optimize the composer autoload dump using --optimize (at least I do).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top