{"id":15,"date":"2026-09-05T18:27:01","date_gmt":"2026-09-05T18:27:01","guid":{"rendered":"https:\/\/hostcrafter.com\/kb\/object-cache-redis\/"},"modified":"2026-09-06T17:36:34","modified_gmt":"2026-09-06T12:06:34","slug":"redis-object-cache","status":"publish","type":"post","link":"https:\/\/hostcrafter.com\/kb\/redis-object-cache\/","title":{"rendered":"Redis Object Cache: When to Turn It On, and When Not To"},"content":{"rendered":"<p><strong>Turn Redis on if your site has a cart, a checkout, memberships, or visitors who log in.<\/strong> On a blog or a brochure site the page cache is already doing that work for you, and this switch is built for the pages a page cache cannot serve. Knowing which is which is the whole of this page.<\/p>\n<dl class=\"hc-facts\">\n<div>\n<dt>Turn it on for<\/dt>\n<dd>WooCommerce, memberships, logins<\/dd>\n<\/div>\n<div>\n<dt>Leave it off for<\/dt>\n<dd>Blogs, brochures, portfolios<\/dd>\n<\/div>\n<div>\n<dt>Costs<\/dt>\n<dd>Nothing. Included<\/dd>\n<\/div>\n<div>\n<dt>Where<\/dt>\n<dd>Panel \u2192 Redis Cache<\/dd>\n<\/div>\n<\/dl>\n<h2 id=\"difference\">Why It Does Nothing for a Blog<\/h2>\n<p>There are two caches, and they work at different moments.<\/p>\n<div class=\"hc-tw\"><table>\n<tr>\n<th><\/th>\n<th>Page cache<\/th>\n<th>Object cache (Redis)<\/th>\n<\/tr>\n<tr>\n<td><strong>What it stores<\/strong><\/td>\n<td>The finished HTML page<\/td>\n<td>The answers to individual database queries<\/td>\n<\/tr>\n<tr>\n<td><strong>When it helps<\/strong><\/td>\n<td>Before WordPress starts<\/td>\n<td>After WordPress has started<\/td>\n<\/tr>\n<tr>\n<td><strong>Who it helps<\/strong><\/td>\n<td>Anyone not logged in<\/td>\n<td>Anyone the page cache cannot serve<\/td>\n<\/tr>\n<tr>\n<td><strong>Typical gain<\/strong><\/td>\n<td>Hundreds of times faster<\/td>\n<td>Noticeable on complex, uncacheable pages<\/td>\n<\/tr>\n<\/table><\/div>\n<p>On a blog, almost every visitor is anonymous and gets a page the web server already has on disk. WordPress is never started, so there are no database queries for Redis to have saved. Adding it changes a number that was not the problem.<\/p>\n<p>On a shop, the pages that matter most are exactly the ones a page cache must never serve: a cart with somebody&#8217;s items in it, a checkout, an account page. Those run WordPress every time, and that is where an object cache is felt.<\/p>\n<div class=\"hc-cal tip\"> <b>If your site is slow and it is a blog, this is the wrong switch.<\/b> Look at the page cache first. See <a href=\"\/kb\/best-wordpress-cache-plugin\/\">The best WordPress cache plugin on our servers, measured<\/a>, which is the plugin we install on every site and the one that does the work for anonymous visitors. <\/div>\n<h2 id=\"how\">Turning It On<\/h2>\n<p>Open your hosting account in the client area and choose <strong>Redis Cache<\/strong>. Every WordPress site we manage is listed with its own switch.<\/p>\n<figure class=\"hc-fig\"><img loading=\"lazy\" src=\"https:\/\/hostcrafter.com\/kb\/wp-content\/uploads\/2026\/09\/redis-section-cce6177acf.webp\" alt=\"The Redis Cache screen, with the object cache on for the shop and off for the other websites\" width=\"1956\" height=\"656\" class=\"wp-image-128\" decoding=\"async\" srcset=\"https:\/\/hostcrafter.com\/kb\/wp-content\/uploads\/2026\/09\/redis-section-cce6177acf.webp 1956w, https:\/\/hostcrafter.com\/kb\/wp-content\/uploads\/2026\/09\/redis-section-cce6177acf-300x101.webp 300w, https:\/\/hostcrafter.com\/kb\/wp-content\/uploads\/2026\/09\/redis-section-cce6177acf-1024x343.webp 1024w, https:\/\/hostcrafter.com\/kb\/wp-content\/uploads\/2026\/09\/redis-section-cce6177acf-768x258.webp 768w, https:\/\/hostcrafter.com\/kb\/wp-content\/uploads\/2026\/09\/redis-section-cce6177acf-1536x515.webp 1536w\" sizes=\"auto, (max-width: 1956px) 100vw, 1956px\" \/><figcaption>The Redis Cache screen. One switch per website, with a Flush button on the sites where the cache exists.<\/figcaption><\/figure>\n<p>Flip the switch for the site that needs it. The panel installs the object-cache drop-in, connects it, and the site keeps serving throughout. There is nothing to configure and no plugin to install.<\/p>\n<p><strong>Each website&#8217;s object cache is private to that website.<\/strong> Nothing else reads it, on your account or anyone else&#8217;s.<\/p>\n<h2 id=\"flush\">Flushing It<\/h2>\n<p>A <strong>Flush<\/strong> button appears beside any site that has the object cache on. It empties that site&#8217;s cached query results and nothing else. Reach for it when you have changed something directly in the database, or when a value on the site is stale in a way a page-cache clear did not fix.<\/p>\n<h2 id=\"notconnecting\">&#8220;On, but WordPress Cannot Reach Redis&#8221;<\/h2>\n<p>If the panel says this, the drop-in is installed but Redis is not answering. <strong>Your site is not broken.<\/strong> WordPress falls back to querying the database directly, exactly as it does with the cache off. What you have lost is the speed-up, not the site.<\/p>\n<p>Turn the switch off and on again. If it comes back, open a ticket; we can see the node&#8217;s own logs and you cannot.<\/p>\n<h2 id=\"off\">Turning It Off<\/h2>\n<p>Flip the switch back. The drop-in is removed and WordPress goes back to the database. Nothing is lost, because an object cache holds only copies of answers it can work out again.<\/p>\n<h2 id=\"faq\">Questions<\/h2>\n<div class=\"hc-faq\">\n<h3>Does Redis cost extra?<\/h3>\n<p>No. It is included, and it is off by default because on most sites it changes nothing worth the moving parts.<\/p>\n<h3>Do I need to install a Redis plugin?<\/h3>\n<p>No, and please do not. The switch installs and configures the drop-in itself. A plugin like Redis Object Cache added on top will fight with it over the same file.<\/p>\n<h3>Will Redis make my WooCommerce store faster?<\/h3>\n<p>Usually yes, and specifically on the pages that were always slow: cart, checkout, my-account, and admin. Product listings that anonymous visitors see were already coming from the page cache.<\/p>\n<h3>Can another customer see my cached data?<\/h3>\n<p>No. Every website&#8217;s object cache is private to that website.<\/p>\n<h3>Should I turn it on for a staging copy?<\/h3>\n<p>There is no need. A staging copy has one visitor: you.<\/p>\n<\/div>\n<div class=\"hc-rel\">\n<h2>Read next<\/h2>\n<ul>\n<li><a href=\"\/kb\/best-wordpress-cache-plugin\/\">The Best WordPress Cache Plugin on Our Servers, Measured<\/a><\/li>\n<li><a href=\"\/kb\/change-php-version\/\">How to Change Your PHP Version<\/a><\/li>\n<li><a href=\"\/kb\/create-mysql-database\/\">How to Create a MySQL Database<\/a><\/li>\n<\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Redis speeds up carts, checkouts and logged-in pages. On a normal blog the page cache already does the work. How to decide, and how to switch it on.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-performance"],"_links":{"self":[{"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":4,"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":158,"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/posts\/15\/revisions\/158"}],"wp:attachment":[{"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostcrafter.com\/kb\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}