U
U
unlik2018-03-20 22:07:54
Yii
unlik, 2018-03-20 22:07:54

Why do pages take so long to open?

There is a site on yii2
But all pages open for a long time.
What could be the reason? Where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-03-21
@webinar

First you need to determine the bottleneck. We open the console in the browser and see where and what is slow. It may be things not related to yii. For example, a 20 mb script in the header. Or a million other reasons. If we see that the server response still leaves much to be desired, then open the debug panel, which is in yii2 out of the box. And we look there, what is slow, how many queries are in the database, whether it is possible to reduce, what can be optimized. Something is solved by eager loading of links, something by caching, there is already according to the situation. It is also possible that the server is shit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question