using AWS elastic Redis cache for wordpress

[ad_1]

Hi, I came across critical error in wordpress while trying to add a aws elastic cache using redis plugin.

This is the error in wordpress debug.log

[03-May-2023 22:29:13 UTC] PHP Fatal error:  Uncaught RedisException: Connection refused in /var/www/html/wordpress/wp-content/object-cache.php:726
  1. I tested accessing my redis access point. It was working.
  2. Php-redis installed and tested.
  3. double check I added following in wp-config file:
define('WP_CACHE_KEY_SALT', 'your-unique-salt-here');
define('WP_CACHE', true);
define('WP_REDIS_HOST', '<aws-redis-access-point>');
define('WP_REDIS_PORT', '6379');

any advice on this?

PS: I tried recovering the site by deactivate plug-in with following steps:

  1. renamed wp-contect/plug-in folder to plug-in.deactivate
  2. change database wp_options table active_plugins row tp option_value field to: a:0:{}

But the site is showing critical error. Any thing else I should do about it?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer