URL is redirecting to old domain after restoring a Wordpress backup due to Redis

I solved this now.

  1. I updated the authentication keys and salts in wp-config using the link provided there (which I had previously ignored). This wasn’t the issue, but needed to be done anyway. https://api.wordpress.org/secret-key/1.1/salt/
  2. I changed the WP_CACHE_KEY_SALT from the gibberish salt key that was there already to the domain name of the site. This should allow for future Duplicator migrations to change it automatically. If not, at least it will be clear that it needs to change and to do so.

I’ll also leave this here for others’ reference. If you are using the Redis Object Cache plugin, here are is the documentaiton for the connection parameters that need to be entered in wp-config. Specifically it is useful to set up and change the password.
Connection Parameters · rhubarbgroup/redis-cache Wiki (github.com)

I also recommend these articles for setting up redis:

How To Install and Secure Redis on Ubuntu 20.04 | DigitalOcean

I left bind unused (commented-out) so that I could connect RedisInsight from my/any desktop. To be secure, I set a very long password.

How To Configure Redis Caching to Speed Up WordPress on Ubuntu 14.04 | DigitalOcean

1 Like