M
M
Maxim Zolotoy2019-02-19 13:00:33
Laravel
Maxim Zolotoy, 2019-02-19 13:00:33

Why does a new Laravel project take a long time to load?

I installed a new Laravel project through Composer (I am studying it slowly) and noticed that if the site is not updated for a long time, then when you restart it, it takes a very long time to load. In my case, the debugger shows 7 seconds. And then already 100-150 ms. Why can this be so? Here is a screenshot of the timeline
5c6bd38477630527901709.jpeg
and here is a screenshot if you update a second time
5c6bd3b3e75f3521029978.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kupurim, 2019-02-19
@spacenear

I have one project under Windows loaded for a very long time (open server yuzal). And I flew on a combat server, switched to Linux and everything was buzzing. I didn’t even begin to figure out what kind of magic was happening with Windows. And there sql queries were processed for a very long time.
Try it under linux if you are on windows.

K
Konstantin B., 2019-02-19
@Kostik_1993

I'm assuming you're running Windows with Vagrant/Homestead or Docker
If that's correct then you most likely have mount speed issues. but it starts to work faster just because opcache works for a short time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question