The page cache cannot help logged-in users, carts or the admin. The object cache can.
It keeps database answers in Redis. So WordPress asks the database less, and pages build faster.
Your host must give you Redis. Ask them for the address, port and password.
Turn it on
- Go to the Cache tab, then Object cache.
- Type the Redis address and Port. Or type a Unix socket path.
- Type the Password, if your Redis has one.
- Click Test connection.
- Turn on Use the Redis object cache. Click Save.
Other settings
- Database: the Redis database number. Most sites use 0.
- Key prefix: keeps your site apart when many sites share one Redis.
- Encrypted connection (TLS): only if your Redis needs it.
It is safe
- If Redis stops, your site still works.
- We never replace an
object-cache.phpfile from another plugin. - Clear object cache clears only your site, not the whole Redis.
Settings in wp-config.php
You can also set Redis in wp-config.php. These win over the screen:
define( 'SOFTMINAL_CACHE_REDIS_HOST', '127.0.0.1' );
define( 'SOFTMINAL_CACHE_REDIS_PORT', 6379 );
define( 'SOFTMINAL_CACHE_REDIS_PASSWORD', 'secret' );
On multisite, only a network admin can change the object cache.