0

Is there a cron job that I can turn on or some setting that I must set, so when I make changes in Magento2 admin panel while in developer mode, that I do not have to go to cache page and flush cache manually every single time ?

  • If you could disable the cache completely, I think that would work too. – Fayyaz Khattak Jun 10 '16 at 12:10
  • yeah, probably, but I think this will make the process even slower, I am looking for some more useful solution – Lachezar Raychev Jun 10 '16 at 12:15
  • No, I think Magento 2 works fine. This happens with Magento 1 older versions. I think you should try and see it that works. Otherwise, wait for the appropriate answer. – Fayyaz Khattak Jun 10 '16 at 12:18
2

@Lachezar Raychev You are advised to disable the caches while in development stage. You can do this by simplying using the following commands from the magento root - ssh.

  • Disable: php bin/magento cache:disable
  • Enable: php bin/magento cache:enable
  • Flush: php bin/magento cache:flush

Or simply disabling it from admin under Systems > Cache Management.

This will be easier than creating an observer that runs a cron job after a save event.

| improve this answer | |
0

Just disable the full page cache and configuration cache from admin.

| 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.