Neos Performance

ⅰ亾dé卋堺 提交于 2019-12-08 05:25:05

问题


I´m new at Neos and the concept is perfect for my needs! So thank you for developing this. But I installed the cms on my vServer and ist takes about 7.4sec to load the page! When I open the Backend menu it takes about 30sec to load all things from there.

I have no idea why this takes so long.

I´ve included a picture of the chrome developer tools network section, you can see there the long loading time.

I`ve already checked my server and no other processes running and could slow down the delevery process of neos.

So I hope you have an idea to solve this issue, because in this state it is to slow to use it in production environment.


回答1:


Have you set the context to production as described in the docs?

<VirtualHost *:80>
    SetEnv FLOW_CONTEXT Production
    ..
</VirtualHost>

Otherwise it runs in development mode, where it always checks for changes.




回答2:


As stated in the answer by StepenKing, the long load times come from caches being rebuild on every request. Flow, which is the framework Neos is based on, does a lot of magic behind the curtains, like building Proxy classes which allow the use of dependency injection. Those proxies are cached, so they don't have to be rebuilt with every request, since this a very heavy task to do. However, when you are developing you application, you want every change that you make to take immediate effect.

This is why caches are being rebuilt on every request, when you run the Application in Development context. The directive SetEnv FLOW_CONTEXT Production will make your installation to run in Production context. In production context, caches will only be rebuilt on the first request or when you manually trigger it. This will make your application run mugh faster.



来源:https://stackoverflow.com/questions/21349907/neos-performance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!