D
D
darknet372017-04-20 14:10:21
Yii
darknet37, 2017-04-20 14:10:21

What should be done at the stage of completing the development of a site on Yii2?

What needs to be done at the stage of completing the development of a site on Yii2?
Here the site has already been written, where and what should be disabled and changed before being uploaded to the hosting?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mi7teR, 2017-04-20
@darknet37

you can read about it here Performance Tuning , I
advise you to pay attention to Schema Caching.
Enable production environment, disable gii and debug panel
If you use yii\rbac\DbManager, then set the cache for it

'authManager' => [
            'class' => 'yii\rbac\DbManager',
            'cacheKey' => 'rbac',
            'cache' => 'cache',
            'defaultRoles' => ['guest'],
        ],

V
Vadim Stepanov, 2017-04-20
@Vdm17

In addition to the previous answer - review all the typical pages that the user will visit most often. When the debug panel is enabled with the output of the number of queries in the database. Look for potential places where there might be a lot of requests. With high traffic, these pages can become a "bottleneck". Maybe there is a need to optimize queries or add caching somewhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question