Skip to content

Instantly share code, notes, and snippets.

@Vizor-M
Last active July 7, 2020 13:28
Show Gist options
  • Save Vizor-M/9cc17fa48560114ccf8aee392e39300c to your computer and use it in GitHub Desktop.
Save Vizor-M/9cc17fa48560114ccf8aee392e39300c to your computer and use it in GitHub Desktop.

Add module

Add repo

composer config repositories.amasty composer https://composer.amasty.com/community/

install module in composer

composer require amasty/module-page-speed-optimizer
composer update

activate module in magento (with da_DK - second call for frontend)

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f [da_DK]

Optimization links:


TMBU commands

Status mode

php bin/magento deploy:mode:show

Switch mode

php bin/magento deploy:mode:set production
php bin/magento deploy:mode:set developer

If blank srceen after switch mode

1

php bin/magento setup:upgrade

2

php bin/magento setup:static-content:deploy [da_DK]

Cache control

php bin/magento cache:enable
php bin/magento cache:disable
php bin/magento cache:flush
php bin/magento cache:clean

Regenerate images

php bin/magento catalog:image:resize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment