{"id":682,"date":"2025-12-28T14:53:57","date_gmt":"2025-12-28T13:53:57","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=682"},"modified":"2026-06-03T09:03:20","modified_gmt":"2026-06-03T07:03:20","slug":"how-to-set-up-a-redis-cache-plugin-for-wordpress-cms","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/","title":{"rendered":"How to set up a Redis Cache plugin for WordPress CMS?"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">If you prefer not to use the <strong>LiteSpeed Cache<\/strong> plugin included with WordPress installations on mybox, but still want to take advantage of <strong>Redis object caching<\/strong>, you can use the <strong>Redis Object Cache<\/strong> plugin available from the official WordPress plugin repository.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Redis object caching can significantly improve website performance by storing frequently accessed database queries in memory, reducing the number of database requests generated by WordPress.<\/p>\n\n\n\n<\/div>\n\n<div id=\"mybox-1447881489\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\"><strong>If you don&#8217;t know what Redis is, the following list will help you get familiar with this technology:<\/strong><br>&#8211; <a href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/what-is-redis\/\">What is Redis?<\/a><br>&#8211; <a href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-activate-the-redis-server\/\">How do I activate the Redis server?<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before You Begin<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before configuring the plugin, make sure that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Redis server is active for your hosting account.<\/li>\n\n\n\n<li>You have access to your WordPress administration panel.<\/li>\n\n\n\n<li>You have FTP access to your hosting account.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If Redis has not yet been enabled, activate it first from the mybox Panel.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Step_1_Obtain_the_Redis_Socket_Path\" >Step 1: Obtain the Redis Socket Path<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Step_2_Install_the_Redis_Object_Cache_Plugin\" >Step 2: Install the Redis Object Cache Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Step_3_Edit_the_wp-configphp_File\" >Step 3: Edit the wp-config.php File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Step_4_Add_Redis_Configuration\" >Step 4: Add Redis Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Step_5_Verify_the_Connection\" >Step 5: Verify the Connection<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Step_6_Enable_Object_Cache\" >Step 6: Enable Object Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Troubleshooting\" >Troubleshooting<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Plugin_Cannot_Connect_to_Redis\" >Plugin Cannot Connect to Redis<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Redis_Status_Shows_Disconnected\" >Redis Status Shows Disconnected<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Website_Displays_Errors_After_Editing_wp-configphp\" >Website Displays Errors After Editing wp-config.php<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Benefits_of_Redis_Object_Cache\" >Benefits of Redis Object Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-set-up-a-redis-cache-plugin-for-wordpress-cms\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Obtain_the_Redis_Socket_Path\"><\/span>Step 1: Obtain the Redis Socket Path<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the mybox Panel and navigate to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Advanced \u2192 Redis Server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Locate and copy the Redis socket path displayed there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/home\/mybox\/YOUR-LOGIN\/.redis\/redis.sock<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You will need this value later when editing the WordPress configuration file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Install_the_Redis_Object_Cache_Plugin\"><\/span>Step 2: Install the Redis Object Cache Plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your WordPress administration panel.<\/li>\n\n\n\n<li>Navigate to:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Plugins \u2192 Add New<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>In the search field, enter:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>redis<\/code><\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Locate the plugin:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Redis Object Cache<\/code><\/pre>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Click:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Install Now<\/code><\/pre>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>After installation, click:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Activate<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Edit_the_wp-configphp_File\"><\/span>Step 3: Edit the wp-config.php File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to your hosting account using FTP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to your WordPress installation directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yourdomain.com\/public_html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Locate the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp-config.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Open it for editing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Add_Redis_Configuration\"><\/span>Step 4: Add Redis Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following lines above the line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* That's all, stop editing! Happy publishing. *\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the socket path with the value obtained from the mybox Panel.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/** Use Unix Socket *\/<br>define( 'WP_REDIS_SCHEME', 'unix' );<br><br>\/** Redis Socket Path *\/<br>define( 'WP_REDIS_PATH', '\/home\/client.mybox.com\/YOUR-LOGIN\/.redis\/redis.sock' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_REDIS_SCHEME', 'unix' );<br>define( 'WP_REDIS_PATH', '\/home\/client.mybox.com\/adrian\/.redis\/redis.sock' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file after making the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Verify_the_Connection\"><\/span>Step 5: Verify the Connection<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Return to your WordPress administration panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Settings \u2192 Redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Tools \u2192 Redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">depending on the plugin version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If everything has been configured correctly, you should see a message indicating that the plugin successfully connected to the Redis server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Typical status messages include:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Connected<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Redis server reachable<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_6_Enable_Object_Cache\"><\/span>Step 6: Enable Object Cache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the plugin displays an option such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Enable Object Cache<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">click it to activate Redis caching for your WordPress installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once enabled, WordPress will begin storing object cache data in Redis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting\"><\/span>Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Plugin_Cannot_Connect_to_Redis\"><\/span>Plugin Cannot Connect to Redis<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Verify that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Redis is enabled in the mybox Panel.<\/li>\n\n\n\n<li>The socket path is correct.<\/li>\n\n\n\n<li>The <code>wp-config.php<\/code> file contains the correct configuration.<\/li>\n\n\n\n<li>There are no extra spaces or syntax errors in the file.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Redis_Status_Shows_Disconnected\"><\/span>Redis Status Shows Disconnected<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Double-check the value of:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>WP_REDIS_PATH<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and compare it with the socket path shown in the mybox Panel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Website_Displays_Errors_After_Editing_wp-configphp\"><\/span>Website Displays Errors After Editing wp-config.php<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restore the original file or remove the Redis configuration lines and verify the syntax.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Even a missing semicolon can prevent WordPress from loading.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Benefits_of_Redis_Object_Cache\"><\/span>Benefits of Redis Object Cache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using Redis can provide:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Faster page generation<\/li>\n\n\n\n<li>Reduced MySQL load<\/li>\n\n\n\n<li>Improved performance on busy websites<\/li>\n\n\n\n<li>Better scalability<\/li>\n\n\n\n<li>Lower server resource usage<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Redis is particularly beneficial for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WooCommerce stores<\/li>\n\n\n\n<li>Membership websites<\/li>\n\n\n\n<li>High-traffic blogs<\/li>\n\n\n\n<li>Dynamic WordPress applications<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To configure Redis Object Cache in WordPress:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enable Redis in the mybox Panel.<\/li>\n\n\n\n<li>Copy the Redis socket path.<\/li>\n\n\n\n<li>Install and activate the <strong>Redis Object Cache<\/strong> plugin.<\/li>\n\n\n\n<li>Edit <code>wp-config.php<\/code> and add:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_REDIS_SCHEME', 'unix' );<br>define( 'WP_REDIS_PATH', '\/path\/to\/redis.sock' );<\/code><\/pre>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Save the file.<\/li>\n\n\n\n<li>Verify the connection in the plugin settings.<\/li>\n\n\n\n<li>Enable Object Cache.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Once configured successfully, WordPress will use Redis for object caching, helping improve website performance and reduce database load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[25,58],"manual_kb_tag":[588,2592,633,2593,638,2594,643,2595,728,2596,765,2597,190,766,242,818,283,969,409,2238,419,2335,421,2351,424,2361,471,2529,517,2590,518,2591],"class_list":["post-682","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-hosting","manualknowledgebasecat-web-applications-cms","manual_kb_tag-website","manual_kb_tag-unix-socket","manual_kb_tag-object-cache","manual_kb_tag-socket-path","manual_kb_tag-wp-config-file","manual_kb_tag-redis-cache-plugin","manual_kb_tag-public-html-directory","manual_kb_tag-redis-activation","manual_kb_tag-redis","manual_kb_tag-object-caching","manual_kb_tag-litespeed","manual_kb_tag-redis-object-cache-plugin","manual_kb_tag-wordpress","manual_kb_tag-litespeed-cache","manual_kb_tag-mybox","manual_kb_tag-php","manual_kb_tag-mybox-panel","manual_kb_tag-redis-cache","manual_kb_tag-winscp","manual_kb_tag-redis-server","manual_kb_tag-wordpress-plugin","manual_kb_tag-cache-plugin","manual_kb_tag-plugin-installation","manual_kb_tag-litespeed-cache-plugin","manual_kb_tag-plugin-activation","manual_kb_tag-search-box","manual_kb_tag-root-directory","manual_kb_tag-wordpress-backend","manual_kb_tag-hosting-account","manual_kb_tag-redis-object-cache","manual_kb_tag-public_html","manual_kb_tag-redis-socket"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":4,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/682\/revisions"}],"predecessor-version":[{"id":3861,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/682\/revisions\/3861"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=682"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=682"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}