lrecknagel
lrecknagel

Reputation: 317

Neos Performance

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.

enter image description here

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.

Upvotes: 1

Views: 1183

Answers (2)

Christian Loock
Christian Loock

Reputation: 154

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.

Upvotes: 0

StephenKing
StephenKing

Reputation: 37630

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.

Upvotes: 5

Related Questions