D
D
Dmitry Baibukhtin2016-07-03 23:28:36
Yii
Dmitry Baibukhtin, 2016-07-03 23:28:36

Yii2 - why does View::render() slow down?

Goodnight. Tell me please. Requests to the database take 9ms in total, and rendering of even the simplest view takes 200ms. XDebug turned off, what could be the problem? I am using Yii2. The problem is not in the framework most likely
92c71a8214e549869c3a384b947a7202.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-07-03
@PiloTeZ

https://blackfire.io/

L
LAV45, 2016-07-04
@LAV45

You won't regret using xhprof
And first, see if you have columns in the GridView in html format

GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        'title:html',
        'description:html',
    ]
])

If you use the html format, then the displayed text will be filtered using HtmlPurifier, which is a very tormented library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question