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 2
that 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
Best Answer
It is good that you spent a lot of time learning core concepts. But if you still need to guess, which step is missing if something you made does not work, you should probably spend more time learning the following concepts:
If you have a decent knowledge of these topics, it is usually kind of clear what you need to do so that your changes take effect. Start with the devdocs on these topics and google a bit for more information.
However, here are some general tips on speeding up Magento 2 development:
TESTS_CLEANUP
variable. This way, the database is not completely rebuilt on each integration test rebuild. The disadvantage is of course that you need to do that manually from time to time. However, it speeds up the whole process a lot.I hope this helps a bit. I will try to update the post from time to time.