1

I'm running on Magento 2 version 2.1.7, but everytime i change my .phtml file content i need to run php bin/magento setup:upgrade to see the change. I already set my magento 2 to developer mode

0

Actually php bin/magento setup:upgrade is used when modules need to be upgraded.

For the case of change in .pthml files, if cache is enabled you must run php bin/magento cache:clean. This works very well for me.

0

You only need to run:

php bin/magento cache:flush

to see changes of phtml files.

The command php bin/magento setup:upgrade is used to deploy new modules.

  • yes i run those scripts too, but usually my phtml file changed always show right away after i edit it without having to run any script in terminal – simple guy Jan 11 '18 at 7:56
  • I don't see how that is possible unless static content and cache was disabled or if you are reffering to Magento 1.X – Lez Jan 11 '18 at 7:59
  • No need of static content deploy . Only cache flush is more than enough – Pramod Kharade Jan 17 '18 at 16:43
0

For phtml only cache command is enough

php bin/magento cache:flush

No need of upgrade and static content deploy command

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.