[英]symfony very very slow
When I do an symfony2 application, a website, the website is very slow. 当我做一个symfony2应用程序时,一个网站非常慢。 I don't understand why.
我不明白为什么。 Have you any tips to find why?
您有任何提示来查找原因吗?
For example: 例如:
Login with FOS, it take 7 seconds. 用FOS登录,需要7秒钟。 For open another page it takes 8 seconds.
要打开另一个页面,需要8秒钟。 It's the same in my web-hosting server or in local.
在我的Web托管服务器或本地服务器中都是一样的。
you should enable cache extension required by Symfony2 ie APC 3.0.17+ (or another opcode cache needs to be installed)
. 您应该启用Symfony2所需的缓存扩展,即
APC 3.0.17+ (or another opcode cache needs to be installed)
。 Full documentation can be read here: http://symfony.com/doc/current/reference/requirements.html 完整的文档可以在这里阅读: http : //symfony.com/doc/current/reference/requirements.html
Other tip is to use app.php
ie production environment to avoid re-building symfony cache. 其他技巧是使用
app.php
即生产环境,以避免重新构建symfony缓存。
You can also enable Doctrine cache: Read Doc 您还可以启用Doctrine缓存: 读取文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.