Answer the question
In order to leave comments, you need to log in
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
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'],
],
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 questionAsk a Question
731 491 924 answers to any question