{"id":18726,"date":"2020-02-25T16:05:41","date_gmt":"2020-02-25T21:05:41","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=18726"},"modified":"2024-02-22T10:07:07","modified_gmt":"2024-02-22T15:07:07","slug":"configuring-page-caching-in-w3-total-cache-for-shared-hosting","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/configuring-page-caching-in-w3-total-cache-for-shared-hosting\/","title":{"rendered":"Configuring Page Caching in W3 Total Cache for Shared Hosting"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>Page Caching is a very powerful performance configuration that reduces the response time of your site by storing the web pages that are generated for future visits. Future visitors will be served the cached copy of the page as opposed to having each page re-generated for them for every visit. W3 Total Cache comes with a number of Page Caching Methods to best suit your situation. There are methods available for a number of platforms and configurations so that you may choose the fastest available option.<\/p>\n<p>If you are unsure of which method to use for Page Caching, in most scenarios and configurations you should use Disk: Enhanced. Other methods that provide in-memory caching should be used depending on the capabilities of your hosting platform.<\/p>\n<p>For suggestions tailored to your hosting plan and recommendations on which Page Caching method to use, consider upgrading to W3 Total Cache Pro for access to the Statistics page.<\/p>\n<div class=\"boldgrid-section\" style=\"margin-top: 60px;\">\n<div class=\"container w3tc-radius\" style=\"border-width: 0px; background-image: url('https:\/\/www.boldgrid.com\/wp-content\/uploads\/2023\/07\/upsell-darker-alt.png'); background-size: cover; background-position: 50% 5%;\" data-image-url=\"https:\/\/www.boldgrid.com\/wp-content\/uploads\/2023\/07\/upsell-darker-alt.png\">\n<div class=\"row upsell-column\" style=\"padding-top: 2em; padding-bottom: 2em; color: #ffffff;\">\n<div class=\"col-lg-1 col-md-1 col-sm-12 col-xs-12 hidden-sm\">&nbsp;<\/div>\n<div class=\"col-lg-5 col-md-6 col-xs-12 col-sm-7\">\n<p class=\"\" style=\"color: #ffffff; margin-top: 0;\">Get the most out of your Shared Hosting with <strong>W3 Total Cache Pro<\/strong>.<\/p>\n<\/div>\n<div class=\"col-lg-6 col-md-5 col-sm-5 col-xs-12 text-center align-column-center\">\n<p class=\"\" style=\"border-width: 0px;\"><a class=\"button-w3tc-white\" style=\"border: 2px solid #30BEC4; font-size: 18px; padding: 15px 30px;\" href=\"https:\/\/www.boldgrid.com\/w3-total-cache\/#pricing\">View Plans<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h2 id=\"choosing-a-page-caching-method-for-shared-hosting\">Choosing a Page Caching Method for Shared Hosting<\/h2>\n<p>In shared hosting plans, you may only be able to cache files to a disk. In such cases, there are two variants available depending on what your hosting platform supports.<\/p>\n<h3 id=\"disk-enhanced-generally-recommended\">Disk: Enhanced (Generally Recommended)<\/h3>\n<p>This caching method serves cached pages by using the server&rsquo;s URL rewriting capabilities, such as .htaccess files in the case of Apache, to resolve the path of cached assets. This method is recommended due to it being faster and more efficient than Disk: Basic, which executes a PHP script to provide similar functionality. In terms of performance, usually only NGINX + Memcached can provide faster results on a single-server environment.<\/p>\n<h3 id=\"disk-basic\">Disk: Basic<\/h3>\n<p>This caching method relies on executing a PHP script to handle rewriting URLs and serving cached files. This may be ideal if you have limited access to the files on your hosting plan, or if using an htaccess file is not possible.<\/p>\n<h3 id=\"caveats\">Caveats<\/h3>\n<p>While disk-based caching will decrease the response time of your site, it is possible that if you have a high-traffic site you may exhaust your disk read\/write throughput. If you have a high-traffic site it is recommended that you <a href=\"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/configuring-page-caching-in-w3-total-cache-for-vps-or-dedicated-hosting\/\">upgrade to a VPS or Dedicated Server<\/a>, as this will allow you to use in-memory caching solutions which provide exponentially faster read\/write performance. For assistance with monitoring disk performance, consider upgrading to W3 Total Cache Pro for access to the Statistics Page<\/p>\n<p>If the cache folder is consuming a large amount of storage, consider using an in-memory cache that has a fixed maximum possible size. You may check this by:<\/p>\n<ul>\n<li>Reviewing the total size of the wp-content\/cache folder for the WordPress website in question<\/li>\n<li>For quick access to the total storage consumed by page caching, consider upgrading to W3 Total Cache Pro for access to the Statistics page<\/li>\n<\/ul>\n<p>If you intend to have blocks of dynamic content on cached pages via mfunc tags, this isn&rsquo;t supported by disk-based &ldquo;Enhanced&rdquo; caching. Disk-based &ldquo;Basic&rdquo; will work, though you should consider using a caching method mentioned in the <a href=\"\/support\/w3-total-cache\/configuring-page-caching-in-w3-total-cache-for-vps-or-dedicated-hosting\/\">VPS \/ Dedicated Server<\/a> or Multiple Server documentation because they will have much better performance for dynamic content.<\/p>\n<ul>\n<li>For analyzing the amount of static vs dynamic content that is causing database queries or calls to objects, consider upgrading to W3 Total Cache Pro for access to the Statistics page.<\/li>\n<\/ul>\n<p>If you have a cluster of web servers, disk-based caching will not sync between multiple environments, leading to potential irregularities in page content. Consider using a method listed in the <a href=\"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/configuring-page-caching-in-w3-total-cache-for-multiple-servers\/\">Multiple Server documentation<\/a>.<\/p>\n<p>Read more about <a href=\"\/support\/w3-total-cache\/configuring-w3-total-cache-for-wordpress-with-shared-hosting\/\">configuring W3 Total Cache with Shared Hosting<\/a>.<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Page Caching is a very powerful performance configuration that reduces the response time of your site by storing the web pages that are generated for future visits. Future visitors will be served the cached copy of the page as opposed to having each page re-generated for them for every visit. W3 Total Cache comes with [&hellip;]<\/p>\n","protected":false},"author":529,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"Configuring Page Caching in W3 Total Cache for Shared Hosting","bgseo_description":"Page Caching is a very powerful optimization that reduces the response time of your site by storing the web pages that are generated for future visits. This guide walks you through configuring page caching in W3 Total Cache for Shared Hosting Environments.","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[740,692],"tags":[],"class_list":["post-18726","post","type-post","status-publish","format-standard","hentry","category-page-cache","category-w3-total-cache"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/529"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=18726"}],"version-history":[{"count":13,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18726\/revisions"}],"predecessor-version":[{"id":125542,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/18726\/revisions\/125542"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=18726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=18726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=18726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}