1. Install only the required packages on your production.
git install --no-dev --optimize-autoloader
2. Change the constant value accordingly on your index.php or remove these two lines entirely.
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
3. Enable your database cache.
'enableSchemaCache' => true,
'schemaCacheDuration' => 60,
'schemaCache' => 'cache',
Comments
Post a Comment