After changing the configuration, you need to flush the cache. This can be done via path_to_magento_app/bin/magento cache:flush. In the Admin panel, you can go to System > Cache Management and flush the cache from there, even though there are instances where this doesn’t work.