Which Mode usually should be use for Magento 2 online store?

Default Mode or Production Mode ?


For the live store, one should always use Production mode.

Reasons: Intended for deployment on a production system, this mode:

  • Does not show exceptions to the user (exceptions are written to logs only).
  • Serves static view files from cache only.
  • Prevents automatic code file compilation. New or updated files are not written to the file system.
  • Does not allow you to enable or disable cache types in Magento Admin.

This improves performance because static files don’t go through the fallback mechanism; instead, URLs for static files are created as needed.

  • Why my store is slow with production mode? Default mode all web pages loading faster. – Peter May 25 '18 at 14:36
  • You may need to sever level optimizations required to make your website load faster in production mode. – Mohit Kumar Arora May 28 '18 at 5:09

If your website is live then you should run it on "Production mode".


Live Store should be in Production Mode.

TO enable Production Mode :

bin/magento maintenance:enable

bin/magento deploy:mode:set production

bin/magento s:d:c // For compilation

bin/magento s:up // Upgrade Data

bin/magento s:s:d // If your M2 version is 2.2.x than add -f , Will generate static files

bin/magento cache:enable

bin/magento maintenance:disable

Read about Shotcuts at Here

  • What mean these two commands? bin/magento s:d:c and bin/magento s:up – Peter May 24 '18 at 7:16
  • Check my Update. – TBS Mage May 24 '18 at 7:19
  • hey Why Downvote ??? :( – TBS Mage May 24 '18 at 7:20
  • Why my store is slow with production mode? Default mode all web pages loading faster. – Peter May 25 '18 at 14:38
  • Try to execute setup:static-content:deploy to generate static files and also apply 777 permissions to var and pub folder. – TBS Mage May 26 '18 at 4:08

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.