A page cache makes your site fast for visitors. But some pages can never come from the page cache: the admin, carts, checkouts, member areas and anything a logged-in user sees. WordPress builds these fresh every time, often with a hundred or more database queries.
An object cache keeps the results of those queries in Redis, a very fast store in your server’s memory. The next time WordPress needs the same data, it reads it from Redis instead of the database. So these pages build faster, and your database has less work.
Do you need it?
It helps most on WooCommerce and other shops, membership and course sites, busy blogs with many comments, and sites where the admin feels slow. A small brochure site that is fully served from the page cache will notice less.
What you need
- A Redis server. Many hosts offer it with one click. If you are not sure, ask your host for the Redis address, port and password.
- The PHP Redis extension (phpredis). Hosts that offer Redis usually have it. The plugin tells you if it is missing.
- Softminal Cache 1.1.2 or newer.
Step 1: open the Object cache section
In WordPress, open Softminal Cache, go to the Cache tab and click Object cache.
Step 2: enter your Redis details
- Redis address and port: for Redis on the same server this is usually 127.0.0.1 and 6379, which are already filled in.
- Or a Unix socket: if your host gave you a file path instead, enter it here. It is used instead of the address.
- Database: a number from 0. Leave it at 0 unless your host says otherwise.
- Password: only if your Redis has one. It is stored encrypted and never shown again.
- Key prefix: already filled in and unique to your site. It keeps your site’s items apart when Redis is shared.
- Encrypted connection: only for a Redis on another server that requires TLS.
Step 3: test the connection
Click Test connection. You should see something like “Connected · Redis 7.2 · 1.2 MB used · 0 items for this site”. If you see an error, check the address, port and password with your host.
Step 4: turn it on
Click Save changes, then turn on Use the Redis object cache. The plugin tests the connection again, adds a small file called object-cache.php to your wp-content folder, and starts with a clean cache. The card now says “On · Redis connected”.
Browse your site and your admin for a minute. Everything should work as before, only faster.
Made to be safe
- It never replaces another object cache. If Redis Object Cache, Object Cache Pro or another plugin already has one, the card says so and leaves it alone.
- It only clears your site’s own keys. Other apps on the same Redis are never touched.
- If Redis goes down, your site keeps working, just without the object cache. When Redis is back, your site’s keys are cleared first, so nobody sees old data.
- Turning it off is clean. Switch it off, or deactivate the plugin, and the object-cache.php file and your site’s keys are removed.
Settings in wp-config.php
Some hosts give you the Redis details as constants, or you may prefer to keep the password out of the database. Add any of these to wp-config.php. They win over the settings screen, and the matching fields show as read-only.
define( 'SOFTMINAL_CACHE_REDIS_HOST', '127.0.0.1' );
define( 'SOFTMINAL_CACHE_REDIS_PORT', 6379 );
define( 'SOFTMINAL_CACHE_REDIS_PASSWORD', 'your-password' );
define( 'SOFTMINAL_CACHE_REDIS_DATABASE', 0 );
define( 'SOFTMINAL_CACHE_REDIS_PREFIX', 'mysite_' );
// Or a socket: define( 'SOFTMINAL_CACHE_REDIS_SOCKET', '/var/run/redis/redis.sock' );
// TLS: define( 'SOFTMINAL_CACHE_REDIS_SCHEME', 'tls' );
// Pause it without removing the file: define( 'SOFTMINAL_CACHE_REDIS_DISABLED', true );
If something is not right
- “Could not connect to Redis”: the address, port or password is wrong, or Redis is not running. Ask your host.
- The switch will not turn on: the card explains why. Usually another object cache is in charge, or the PHP Redis extension is missing.
- “On · Redis not reachable”: Redis stopped answering. Your pages still work. Check with your host, and the cache comes back by itself once Redis does.
- On a multisite network: the object cache serves every site, so only a network admin can change it.
Not using Softminal Cache yet? It is free, with no Pro version.
If you have any question or face any problem, please do write to us at support.softminal.com. Our team reads every message.

Leave a Reply