Redis Installed but WordPress Not Using It: Service, PING and Object Cache

Three states that are easy to confuse: the package is installed, redis-cli returns PONG, and WordPress actually has an object-cache drop-in connected.

About these notes: A maintenance log from my own InterServer VPS. Redis started successfully on 27 October 2026, after which I finished connecting WordPress. Paths, service names and database numbers below are my configuration, not universal defaults.

Installing Redis is not the same as WordPress using it. I expected a service install and a start to be the whole job. Instead Redis first refused to start; once it did, WordPress was still not connected. Here is the sequence, including the three states I kept confusing.

Redis official homepage screenshot, shown only to identify the in-memory database discussed; not a screenshot of thi
Redis official homepage screenshot, shown only to identify the in-memory database discussed; not a screenshot of this site's backend or a test. Text and branding as displayed at capture time.

Start with this check table

Layer Check Reading the result
Where the command runs Look at the SSH prompt and run hostname Should be the target server; if you are back on your local machine, reconnect first
Service systemctl is-active redis-server “active” in this case; if failed, read the service log
Client connection redis-cli ping PONG here; if refused, check service, bind address and port
WordPress integration Object-cache plugin status and wp-content/object-cache.php Only check this after Redis itself accepts connections

1. The service would not start

The first failure was not a WordPress problem at all. The service log pointed to a shared-library error and, eventually, to a restriction on the service’s executable path in the systemd unit. Fixing that let the daemon start. Had I been staring at the WordPress admin the whole time, that log would have stayed unread.

2. PONG only proves one thing

Once it started, redis-cli ping returned PONG. I also checked the listening addresses: 127.0.0.1:6379 and [::1]:6379 — local only. PONG means Redis accepted that one client connection. It says nothing about whether WordPress has a drop-in loaded, whether the plugin is configured, or whether a single page was served from cache.

3. Connecting WordPress

WordPress needs its object-cache drop-in in place and the plugin connected. I gave this site its own database number and key prefix so it can be told apart from anything else on the same Redis instance:

define('WP_REDIS_DATABASE', 1);
define('WP_REDIS_PREFIX', 'liuqiangwujinjidian:');

Database 1 and a domain-derived prefix are my choices, not required values. Use values that do not collide with other sites on the same server.

Observed state What it proves
Package installed The software exists on the machine
redis-cli ping returns PONG Redis accepts this client connection
Object cache plugin shows connected WordPress is actually wired to the object cache
PHP official homepage screenshot, shown only to identify the runtime discussed; not a screenshot of this site's b
PHP official homepage screenshot, shown only to identify the runtime discussed; not a screenshot of this site's backend or a test.

Connected does not mean “the site is fast now”

An object cache reduces repeated database work; it does not fix a heavy theme, uncompressed images, slow DNS or a slow network path. If you want to judge the effect, compare the same pages under the same conditions before and after, and keep the slow samples. My own HTML-only timing runs are recorded in Testing a $6 VPS From China Telecom: Six curl Requests, 1.21–1.35s TTFB.

How to confirm WordPress is actually using Redis

“Connected” on the plugin page is only the first checkpoint. The checks below are general methods, not a before/after benchmark: I did not run a controlled comparison, so this article does not claim a speedup.

What to confirm Where to check How to read it
Service is up redis-cli ping PONG proves only that this client connection works
WordPress drop-in is loaded Plugin status page, wp-content/object-cache.php A file on disk is not proof of a live connection
Cache writes are happening redis-cli -n 1 DBSIZE (use your own database number) A growing key count after a few page loads means writes; it is not a hit rate
Hit behaviour keyspace_hits / keyspace_misses from redis-cli INFO stats, or the plugin metrics Misses are normal right after connecting while the cache warms up

With WP-CLI and the plugin installed, wp redis status gives the connection state directly. To inspect keys, scan with a prefix rather than running KEYS * in production.

Page cache and object cache are two separate layers. This site runs WP Super Cache (static HTML) alongside Redis object cache (database query results), and they do not conflict. With a page cache, many requests never reach PHP, so slow key growth does not mean the object cache is broken. Let the cache warm up again after purging page cache before drawing conclusions.

Common Redis errors and what to check first

A general triage order; adjust every value to your own setup. Only the systemd path restriction in the main text is from my own debugging — the other rows are reference notes, not individual test logs.

Symptom Likely cause Check first
Connection refused Service not running, or a different port / bind address systemctl is-active redis-server, service log, port 6379
NOAUTH / WRONGTYPE Password or ACL required; database used by another app WP_REDIS_PASSWORD, or switch database number
Class 'Redis' not found PHP redis extension missing, or installed for a different PHP version php -m and the PHP-FPM version actually serving the site
Plugin stays Not connected Missing or overwritten drop-in, unwritable wp-content Re-enable the drop-in, check permissions and WP_REDIS_* constants
Unknown remote connections Port 6379 exposed publicly Bind to 127.0.0.1, set requirepass, restrict with a firewall

Pick the layer before changing configuration. Back up wp-config.php first, keep the backup out of public directories, and never publish screenshots containing passwords or server IPs. For the surrounding setup, see the 8-stage WordPress setup guide, the VPS checklist, the SSH disconnect / command not found note and what the first year really cost.

Frequently asked questions

The plugin is active but the object cache still shows disconnected. What now?

Work down the layers: confirm the SSH prompt is on the right host, check the service, check PONG, then check for wp-content/object-cache.php and the plugin’s connection status. Do not reinstall the package before you know which layer failed.

Is Redis required for a small WordPress site?

No. It is one part of my stack alongside page caching and OPcache. Decide from measured behaviour on your own site, not from a checklist.

Can I use database 0 and no prefix?

Technically yes, but a separate database and prefix make inspection and debugging far easier when more than one site shares the server.

Where to read next

WordPress 502 After a PHP Upgrade: Tracing ‘Permission denied’ in the Nginx Log is the PHP 8.3 / 502 incident on the same machine, bt and redis-cli ‘command not found’ After an SSH Disconnect the terminal mistake that hid commands from me, and InterServer VPS for WordPress: What I Pay and What Broke the VPS itself.