Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
VGSources
Blog

How to Configure Redis Caching to Speed Up WordPress (Safely)

A practical, security-first guide to configuring Redis object caching in WordPress, verifying that PHP uses it, measuring real gains, and troubleshooting failures.
Length10 min Posted Quest giverVGSources Team

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Redis can make WordPress reuse expensive database and application objects instead of rebuilding them on every request. To use it safely, run Redis on a private, reachable network, connect it through a maintained object-cache integration, install the wp-content/object-cache.php drop-in, and verify both the Redis connection and WordPress cache type. Redis is not a replacement for page caching, PHP OPcache, or browser/CDN caching; it is the persistent object-cache layer in that stack.

The exact improvement depends on your workload, database latency, PHP runtime, network placement, and cache hit rate. There is no authoritative universal percentage improvement for WordPress sites, so measure your own site before and after enabling it.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What Redis caching does in WordPress

WordPress exposes an object-cache API, including the wp_cache_* functions, for storing values such as query results, options, and other application objects. WordPress’s default object cache is non-persistent: it normally exists only for the current request. When the request ends, those objects are discarded.

A persistent object-cache drop-in stores those objects between requests. A Redis-backed integration sends them to a Redis server, allowing later PHP requests to reuse them. On a busy game-news site, community site, or store, this can reduce repeated database work and PHP processing when the same objects are requested frequently.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Redis does not automatically cache every rendered HTML page, image, JavaScript file, or stylesheet. Full-page caching uses a different drop-in, commonly advanced-cache.php. Browser and CDN caches are separate again, as is PHP OPcache, which stores compiled PHP bytecode. Treat Redis as one layer rather than a complete performance solution.

Check the environment before installing anything

Redis must be running somewhere that the PHP process serving WordPress can reach. It may be on the same machine, on a private application network, or supplied as a managed service by your host. Record the connection details before changing WordPress:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Redis hostname or private IP address.
  • TCP port. Redis CLI defaults to port 6379, but your deployment may use another port.
  • Authentication method: ACL username and password, legacy password authentication, or no password only when network controls make that acceptable for a strictly isolated setup.
  • Logical database number, if your service uses more than the default database.
  • Whether traffic must use TLS.
  • Any prefix or key-salt requirement when several applications or sites share the same Redis service.

Confirm that the PHP runtime—not just your SSH session—can route to the endpoint. A Redis server reachable from your laptop can still be inaccessible from a container, PHP-FPM pool, or separate web host.

Secure Redis before connecting WordPress

Redis documentation describes Redis as intended for trusted clients inside trusted environments. Do not expose its TCP port directly to the public internet. A publicly reachable instance can allow destructive commands, including FLUSHALL, and can expose cached application data.

Restrict the network

  • Place Redis on the same host or a private application network whenever practical.
  • Use a firewall or security group that permits the Redis port only from the WordPress application hosts.
  • Bind Redis only to the interfaces that the application needs; do not bind it broadly just to make troubleshooting easier.
  • For a managed service, use its private endpoint and network allow-list rather than a public endpoint.

Authenticate and encrypt

Use Redis ACLs where available, or the server’s supported password authentication. Legacy requirepass is not a substitute for network isolation. If traffic crosses an untrusted network, require TLS and make sure the WordPress client and integration support the selected TLS mode. Authentication without firewall controls still leaves the service exposed to scanning and denial-of-service attempts.

Protect credentials

Keep usernames, passwords, certificates, and connection strings out of screenshots, source control, and any publicly readable wp-config.php. Use the host’s secret-management facility or environment-backed configuration when it is available. Rotate credentials if they have ever been committed or disclosed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter | USB C Dongle with 90W Max Power Delivery, 3×5Gbps USB A Data Ports, for MacBook, Dell, and More (Charger Not Included)
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Install and activate a Redis object-cache integration

The maintained Redis Object Cache plugin in the official WordPress directory is a commonly used integration. It provides a persistent object-cache backend and supports client choices such as Predis, PhpRedis, and Relay, as well as replication, Sentinel, and clustering topologies. Those capabilities do not remove the need to configure the topology correctly for your service.

  1. Take a current backup of the site and database, and note how to disable the plugin from the command line or hosting panel if the connection fails.
  2. In WordPress, open Plugins and choose Add New.
  3. Search for the maintained Redis Object Cache plugin, install it, and select Activate.
  4. Do not assume activation alone enables persistent caching. The plugin still needs valid connection settings and an object-cache drop-in.

If your host supplies a preconfigured Redis integration, use its documented client and endpoint settings instead of installing a second integration that may compete for the same drop-in.

Configure the Redis connection in the right place

Connection constants or environment-backed settings belong in wp-config.php or in the configuration mechanism supported by your host. When editing wp-config.php, place the settings before the line that says “That’s all, stop editing!” when that line is present. A deployment-managed secret file or environment variable is preferable to hard-coding credentials in a repository.

Use the names and syntax shown by the integration’s current configuration examples. At minimum, those settings must describe the Redis endpoint, port, authentication credentials, logical database, and TLS mode when required. A localhost example is only suitable when Redis really runs on the same host and listens on the local default port. For production, replace every example endpoint, credential, database number, and scheme with the values for your deployment.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After saving the configuration, check file ownership and permissions so PHP can read the settings but unrelated users cannot. Clear PHP OPcache or restart PHP-FPM only if your deployment caches configuration files and does not notice the change automatically.

Enable the persistent object-cache drop-in

The integration installs or updates wp-content/object-cache.php. WordPress loads this file as the persistent object-cache implementation. It is separate from the page-cache file advanced-cache.php.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

WP_CACHE by itself does not enable Redis and does not create a persistent object cache. A site can have WP_CACHE set to true while still reporting the default, request-only object cache if no valid drop-in is present.

Check that wp-content/object-cache.php exists, is readable by the PHP user, and is not being deleted by a deployment process. Only one object-cache drop-in can be active at a time; another plugin or a host automation step can replace it. Keep a copy of the expected file state in your deployment checklist.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Verify the connection from Redis and WordPress

Verification should test both layers. A successful plugin activation screen does not prove that PHP can authenticate to the server or that WordPress is using the drop-in.

Test Redis directly

From a shell that can reach the configured endpoint, run:

redis-cli ping

Expect PONG. If Redis is not on local port 6379, pass the deployment’s host and port, and use the required authentication and TLS options. Test from the web host or container where PHP runs, not only from an administrator workstation.

Test the WordPress cache type

From the WordPress directory, run:

wp cache type

The result should identify a persistent object-cache implementation rather than the default cache. Check the plugin’s administration or diagnostics screen as well.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray | Data transfer & Fast charging for MacBook, iPhone 17/16/15, iPad, Samsung Galaxy, Apple Watch
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Inspect the plugin’s WP-CLI commands

List the commands and their current options with:

wp help redis

Use the plugin’s wp redis diagnostics according to the installed version and topology. Command names and available flags can change, so read the help output on the actual server instead of copying options from an unrelated installation.

Confirm the drop-in

Verify that wp-content/object-cache.php is present and readable by PHP. If the file is missing, the cache type will remain default even when Redis itself answers PONG.

Measure whether Redis helps your site

Do not promise a fixed speed gain. Establish a baseline before enabling Redis, then compare the same pages and traffic patterns afterward. Record at least:

  • Database query time and total database load.
  • PHP execution time and PHP-FPM saturation.
  • Page-cache hit and miss behavior.
  • Redis hit and miss counts, memory use, evictions, and connection errors.
  • Real-user or synthetic response times for logged-out and logged-in requests.

Test representative pages rather than one anonymous homepage: a game article, archive or search page, account area, forum view, and any WooCommerce cart or checkout flow if the site has one. Separate cold-cache results from warm-cache results, and avoid drawing conclusions while a deployment, database migration, or traffic spike is changing the workload.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A lack of visible speedup does not automatically mean Redis is broken. If page caching already serves most anonymous requests, the remaining dynamic requests may not repeat enough work to benefit. Profile database time, PHP time, page-cache behavior, and Redis hit/miss behavior together.

Operate the cache without causing an outage

Flush deliberately

The command wp cache flush clears the object cache. On multisite, it typically affects all sites in the network, and WP-CLI warns that flushing can have production impact. A flush can create a sudden thundering herd as every request rebuilds objects. Prefer targeted invalidation through the application or a maintenance window when possible.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Plan for restarts and failover

Redis restarts erase in-memory data unless persistence is configured by the service, but an empty object cache should normally be repopulated by WordPress. Treat the restart as a temporary cache miss event and watch PHP and database load while it warms. Replication, Sentinel, and clustering require matching integration and client settings; enabling a server-side feature without configuring the WordPress client does not provide failover.

Watch memory and key scope

Set an appropriate memory policy with your Redis operator and monitor evictions. Use a distinct prefix or logical database for each application when sharing a service. On multisite, review the key prefix and site scope so one site’s invalidation cannot unintentionally mix or remove another site’s objects.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common failures

Symptom Checks and corrective action
Connection refused or timeout Confirm that the Redis process is running, then check the endpoint, port, firewall rules, container route, and TLS mode with redis-cli from the WordPress host.
Authentication error Verify the ACL username and password or the configured password method. Ensure the PHP client and integration support that authentication mode, and check for hidden whitespace in secret values.
Plugin is active but cache type is “Default” Check that wp-content/object-cache.php exists, is readable by PHP, and has not been replaced by another plugin or deployment step. Confirm that the connection settings are loaded before the stop-editing line.
Failures after failover or clustering Review the integration’s topology settings and client support for replication, Sentinel, or clustering. A single-node endpoint cannot be treated as a cluster endpoint without the required discovery settings.
Stale or cross-site data Review the cache key prefix, salt, logical database, and multisite scope. Invalidate the affected group or site first; reserve a full flush for cases where broad invalidation is acceptable.
No measured speedup Compare database and PHP time, page-cache hit rate, Redis hit/miss behavior, and network latency. Redis is not a guarantee of a particular percentage improvement.

Multisite, WooCommerce, and dynamic gaming sites

Multisite networks need explicit key isolation and an understanding of flush scope. A network-wide wp cache flush can evict objects for every site, not just the site being edited. Test one site first, then observe network-wide memory and hit-rate changes.

WooCommerce and other logged-in or personalized features issue more dynamic requests than a fully cached article page. Redis can reduce repeated object and query work in those requests, but it must not be used to share user-specific values between visitors. Keep page-cache exclusions and object-cache key prefixes aligned with the application’s multisite and session behavior.

For a video-game publication, high-traffic article pages may already be served by a page cache or CDN, while search, previews, moderation screens, accounts, and editorial dashboards remain dynamic. Measure those paths separately instead of judging Redis solely by anonymous article load time.

Choosing a free plugin setup versus a managed or premium service

There is no single best deployment. Compare the operational requirements that matter to your site rather than choosing by a claimed speed percentage.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Decision axis Questions to answer
Host and PHP compatibility Can the host run the required PHP Redis client or the integration’s supported alternative, and can PHP reach the endpoint?
Latency Is Redis local to PHP or across a network? Remote latency can reduce the value of frequent small reads.
Security Are private networking, ACLs, credential rotation, and TLS available and configured?
High availability Do you need replication, Sentinel, or clustering, and does the WordPress client support the selected topology?
Diagnostics Do you have hit/miss metrics, memory and eviction monitoring, connection logs, and an admin diagnostic screen?
Application behavior Have you tested multisite prefixes, logged-in sessions, WooCommerce carts, cron jobs, and editorial tools?
Support and cost Who handles upgrades, failover, backups, TLS certificates, and incidents, and what is the recurring operational cost?

The plugin directory identifies Object Cache Pro as a business-class option with optimization, debugging, TLS, and support-oriented features. Verify current pricing, compatibility, and partner terms independently; the appropriate choice depends on your host, topology, and support requirements.

A safe rollout checklist

  1. Identify the Redis endpoint, port, authentication, database, TLS requirement, and key-isolation plan.
  2. Firewall Redis to trusted application hosts and enable the supported authentication controls.
  3. Back up WordPress and record a rollback method.
  4. Install and activate one maintained object-cache integration.
  5. Add its current connection settings in wp-config.php or the host’s secret mechanism, before the stop-editing line where applicable.
  6. Confirm that wp-content/object-cache.php is installed and readable.
  7. Run redis-cli ping, wp cache type, and wp help redis from the appropriate hosts.
  8. Exercise anonymous, logged-in, multisite, and commerce paths while watching logs and metrics.
  9. Record before-and-after database, PHP, page-cache, and Redis measurements.
  10. Document who may flush the cache and use wp cache flush only when its broad impact is acceptable.

Bottom line

Configure Redis as WordPress’s persistent object cache, not as a substitute for every other cache. Secure the server on a private network, use the integration’s current connection settings, verify the drop-in and cache type from the WordPress host, and measure real workloads. When those conditions are met, Redis can reduce repeated application and database work; when they are not, it can add risk without delivering a measurable benefit.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.