There is CLI command to set up Redis as backend for Magento cache:

$ ./bin/magento setup:config:set --cache-backend=redis

Does any CLI command exist to switch off Redis as cache backend for Magento?

  • You tried bin/magento setup:config:set --cache-backend=db or bin/magento setup:config:set --cache-backend=database ? Jun 8, 2020 at 11:14
  • I've tried --cache-backend=db with error result
    – Alex Gusev
    Jun 8, 2020 at 15:38

1 Answer 1


Unfortunately, As far as I know core team did not had insight of implementing this, you can check the class implementing it to see if it is otherwise - Magento\Setup\Model\ConfigOptionsList\Cache .

Your best bet would be removing the cache node from env.php where child has value "Cm_Cache_Backend_Redis" and clearing config cache.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.