I've followed the instructions in this post to configure this but redis status is always showing not connected. I tried to turn on diagnostics on redis cache instance but it doesn't even seem like any requests are getting to the service itself. Any ideas?
4 Answers
After some more investigation it looks like there is a thread that covers the majority of the scenarios on the plug in discussions page... I would read through this and ensure you have things in the properly place as well...
https://wordpress.org/support/topic/enabling-with-predis-and-remote-redis

- 4,020
- 2
- 18
- 29
-
Also, you should make sure to update to 4.2.2 ASAP as there are some fixes to a major security vulnerability – cory-fowler May 28 '15 at 20:55
-
Upgraded to 4.2.2 I saw that thread and moving the defines above "/* That's all, stop editing! Happy blogging. */" fixes the problem. Interesting that it sees the settings. Thanks for looking into this – Ram Gopinathan May 28 '15 at 23:57
-
Perhaps you could add this to that blog post :) – Ram Gopinathan May 28 '15 at 23:58
HTTPS is not supported by the predis library, you must use the non HTTPS endpoint which is 6379.

- 4,020
- 2
- 18
- 29
-
Same result. I noticed the version shown in the screen shot in that blog post and what I'm seeing seems different. Is there any additional steps? – Ram Gopinathan May 28 '15 at 03:37
-
Unrelated issue - I noticed when you turn on diagnostics on redis cache, I'm able to hit save without having a storage account selected but errors. Saves successfully once I select a storage account – Ram Gopinathan May 28 '15 at 03:44
-
Can you confirm that the object-cache.php file is indeed in wp-content – cory-fowler May 28 '15 at 04:38
-
You could also verify that there is indeed nothing making it to cache by using redis-cli to connect to the redis service – cory-fowler May 28 '15 at 04:39
-
I've verified that wp-content folder has object-cache.php file and also can connect to azure redis from redis-cli – Ram Gopinathan May 28 '15 at 14:57
-
Azure Redis disables the non-ssl port 6379 by default. If you are trying to connect to that port, you need to enable it first through the portal. Port 6380 is the SSL port and is always enabled. – JonCole May 28 '15 at 15:25
you can use https for redis cache and wordpress. You need to set it to set WP_REDIS_SCHEME to use TLS. See: https://cloud.accigo.se/blog/how-to-set-up-azure-redis-cache-for-wordpress/

- 1
-
A link to a solution is welcome, but please ensure your answer is useful without it: [add context around the link](https://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers/8259#8259) so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. [Answers that are little more than a link may be deleted.](https://stackoverflow.com/help/deleted-answers) – Dwhitz Apr 10 '19 at 11:52
Sometimes after editing the wp-config.php file, when you click on diagnostics, it will show you Redis: not found, but you may need to wait a little and try to Enable Redis object and disable Redis Object few time to get the updated information from the wp-config file.
I hope this will help.

- 362
- 3
- 15