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?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityThere 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?
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.
--cache-backend=db
with error result