Redis as object cache
-
Dear Developer,
With the new WordPress update, Site Health suggests I use some persistent object cache.
I’ve tried your plugin as it has Redis and memcached built in. I’ve found some strange things.
I’ve activated the Redis extension within Cpanel. After that, I created a sample PHP file to check if Redis works fine.
$redis = new Redis(); $redis->connect( '127.0.0.1', 6379 );
This sample file just throws an error:
Fatal error: Uncaught RedisException: Connection refused in redis.php
.Then, I tried your plugin, and activated Redis as an object cache, and it works. The server is the same as in my test file (
127.0.0.1:6379
) and your plugin could connect to it. The Test button also works (Gives me aTest passed.
message.)I’ve contacted my host and they said that Redis is not available on shared hostings (which I have) only on their VPSs.
So, how your plugin can use Redis if my hosting doesn’t support it? And why the test button says
Test passed.
if Redis not running (or reachable)?Best regards,
Gergo Simko
- The topic ‘Redis as object cache’ is closed to new replies.