I spent a lot of time learning core concepts, and now I have a decent understanding of Magento 2.

However I am spending days, not hours, trying to make even tiny changes, like changing layout, I need to run and wait a lot of time whenever I make any changes to my website.

Commands like clearing cache,upgrading modules,deploying static content.

If you have missed one of these commands, you can spend a couple of days trying to find anerror in your code, but finally will find out that there are some generated files that are cached.

I am spending hours to change something in Magento 2that is done in seconds using other CMSes.

Whenever I make a change and it is not applied, I need to guess whether it is cached or I had made a mistake in my code.

Please suggest any way to speed up development time

  • Don't forget to turn off the browser caching in your browsere network tab, and don't forget that checkout uses local storage :) – vaso123 Jun 25 '18 at 11:42
  • Welcome to world of magento2 :) Sometimes a little thing is takes 2 days while I am debugging and find the entry point. – vaso123 Jun 25 '18 at 11:44

I think your testing or learning in the local environment.

As you know Magento 2 is really massive.

My HDD upgraded to SSD (or RAM drive) for Magento files and database. After that Magento is fast to do setup:upgrade and content deployment.

So, I recommend to upgrade your HDD to SSD.

  • I agree with this. static:content:deploy for example generates a lot of files. Same with installing via composer. – Dominic Xigen Jun 17 at 17:22

maybe try looking into GRUNT WATCH for magento. Magento provides great docs on how to set it up: https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/css_debug.html

  • I've found that grunt doesn't factor theme inheritance in some cases. In my experience this causes more problems that it solves. – Dominic Xigen May 12 at 21:11

I submitted a pull request which I believe made it into 2.3. You can use a GET param to enable/disable template hints. This helps speed up development in our team. Check the options under Stores –> Configuration. Select Developer option from the Advanced tab. Open Debug dropdown. Here you will find the options.

Under my pull request they did discuss backporting to 2.2 but I personally haven't got the time at the moment. Submitting a pull request to m2 git repo takes up a lot of your time.


In developer mode you don't need clean cache.

Change settings in backend Configuration => Developer => to Compilation on client side.

After some changes in less files you need clean pub/static/frontend/

Usually it fast process maybe your server is slow?

Update: local or cloud server - running developer mode + compilation on server side + all caches enabled and after any changes just

rm -rf var/cache/* var/page_cache/* var/session/* var/view_preprocessed/pub/static/* pub/static/frontend/* generated/code/

and refresh page (yes refresh can be slower)

  • When you modify xml you need to clean (flush) cache and no need to reindex. When you add or modify di, you need to recompile. – vaso123 Jun 25 '18 at 11:43
  • Ok , but you dont need recompile in developer mode. Plus is better to switch cache off by magento cache:disable. Still you need then clean sometimes some static files rm -R pub/static/frontend/* – BartZalas Jun 26 '18 at 0:50
  • Running a site in developer mode is painfully slow. As is running a site with all caches disabled. If doing frontend work I recommend disabling just the three. php bin/magento cache:disable layout block_html full_page – Dominic Xigen May 12 at 21:08
  • Its old answer, in my local or cloud server - running developer mode + compilation on server side + all caches enabled and after changes just rm -rf var/cache/* var/page_cache/* var/session/* var/view_preprocessed/pub/static/* pub/static/frontend/* generated/code/* Its extremally fast :) – BartZalas May 13 at 12:52

If you're in doubt whether there is an error in your code, please check the console. If the console doesn't display any error, then it may cache issues. So you have to flush or clean the cache.

Basically, Magento is slow by default compared to other platforms.

You may consider installing free plugins like lazyloading images and necessary configuration to speed up the Magento.

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.