News

Redis Object Cache breaks your WordPress? Do this!

Do two things

  • Explicitly specify the database of choice you wanna use for each site (assuming you’re running multiple wordpress instances on the same VPS)

    To specify the database, do this define( 'WP_REDIS_DATABASE', X); where X is a number from 1-16
  • IMPORTANT: Put the above definition AT THE TOP of your WordPress wp-config.php file. Preferably, the first line before even the DB definitions.

Remember the Zen of Python: Explicit is better than Implicit

Enjoy!

Related Articles

Back to top button