Magento won't save admin settings

So, I’ve been stuck somewhere like this before. I changed some settings, but they didn’t show in Magento. However, when I checked my Database it was showing my changes. Clearing the cache then fixed this.

Therefore, the first thing you need to establish is: “Are your settings/changes showing in your Database”?

If they are, then it’s definitely a Cache issue. So, you’d want to try the following:

  • Standard Cache Clearing Methods via Frontend or Backend
  • Cache Clearing or Redis/Cache (if this is applicable)
  • Finally, a complete removal of cached files and regeneration of static content (see below)

When you need to completely nuke your cache and rebuild everything, I run the following within the Magento Root Directory as the “Magento” user:

rm -rf var/cache/* var/page_cache/* generated/code/* pud/static/frontend
bin/magento setup:static-content:deploy en_US en_GB -f
bin/magento cache:clean
bin/magento cache:flush

(Replace en_US en_GB with locales applicable to your own store)

1 Like