After making a change to app/etc/di.xml

Am I required to take some additional steps in order for the change to take effect?

Like clean cache, deploy static files or compile code?

  • yes sure, please run clean cache and deploy static files. – MGento Sep 25 '17 at 9:58
  • 2
    Why you modify here [app/etc/di.xml] ? – Sohel Rana Sep 25 '17 at 10:00

Yes, you need to recompile after you have done some changes in di.xml file and then it's a good practice to remove cache too.

php bin/magento setup:di:compile

A nice answer is here for your reference. Hope it will give you a better idea.

| improve this answer | |
  • @PrincePatel it's my pleasure. – Rajeev K Tomy Sep 25 '17 at 10:11

You can also remove the folders inside the var/ like

  • generation
  • cache
  • page_cahceapart from.htaccess` file

Then run the command php bin/magento c:f,

| improve this answer | |

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.