{"id":200472,"date":"2021-09-02T04:34:41","date_gmt":"2021-09-02T04:34:41","guid":{"rendered":"https:\/\/wpmudev.com\/blog\/?p=200472"},"modified":"2021-09-02T04:34:41","modified_gmt":"2021-09-02T04:34:41","slug":"speed-up-hosting-static-server-cache","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/speed-up-hosting-static-server-cache\/","title":{"rendered":"How to Speed Up Hosting with Static Server Cache"},"content":{"rendered":"<p>What the H double T P? If site loading slowdowns have you shaking your fist, it\u2019s probably time to cache out.<\/p>\n<p>When it comes to fast loading WordPress sites, caching is crucial. A well-optimized page cache can dramatically improve page load speed for visitors, and reduce the load on your server.<\/p>\n<p>You have a slew of options when it comes to caching. You could go with a <a href=\"https:\/\/wordpress.org\/plugins\/search\/caching\/\" rel=\"noopener\" target=\"_blank\">caching plugin from WordPress.org<\/a> (there are many, so we compiled a \u201cbest of the bunch\u201d short list), or a caching module installed on top of a web server.<\/p>\n<p>Of course the caching method you choose will produce greatly varying results in terms of the quality and impact on your site performance. So what\u2019s the best option?<\/p>\n<p>Continue reading, or jump ahead using these links:<\/p>\n<ul>\n<li><a href=\"#post-825-_n9qa2bwc5qhb\">All About That Cache<\/a><\/li>\n<li><a href=\"#post-825-_g0dgej8dw9c\">Why FastCGI Rules<\/a><\/li>\n<li><a href=\"#post-825-_8lviwrq3ww79\">Caching Policies<\/a><\/li>\n<li><a href=\"#post-825-_fb1z8vgrsgg6\">Plugin Possibilities<\/a><\/li>\n<li><a href=\"#post-825-_j8mf5959evib\">(Con)figuring it All Out<\/a><\/li>\n<li><a href=\"#post-825-_eejcilehc991\">Your Cache Cow<\/a><\/li>\n<\/ul>\n<p>In this article, we\u2019re going to look more closely at what static server cache is, explain why we recommend FastCGI (with a peek into Static Server Cache FastCGI), and how implementing it can optimize your site speed and user experience.<\/p>\n<p>Let\u2019s get started.<\/p>\n<h2><a id=\"post-825-_n9qa2bwc5qhb\" target=\"_blank\"><\/a>All About That Cache<\/h2>\n<p>Rendering or fetching a page or post in WordPress requires queries to be sent back and forth from the database. A lot of these posts and pages won\u2019t be updated everyday.<\/p>\n<p>Rather than the server interpreting the site code itself, querying the database, and returning an HTML document back to the customer and finally loading the page, static caching saves a single result from the first two steps and provides that document to anyone else making the request.<\/p>\n<p>Static assets like CSS, JavaScript, and images are stored in browser caching, so the browser can retrieve them from its local cache. This is faster than downloading the resources again from the page&#8217;s server.<\/p>\n<p>Caching in WordPress has multiple benefits, the top amongst them being: <a href=\"https:\/\/wpmudev.com\/blog\/speeding-up-wordpress\/\" target=\"_blank\" rel=\"noopener\">speed and performance boosts<\/a>, hosting server load reductions, and more favorable rankings with search engines. As stated in <a href=\"https:\/\/wpmudev.com\/blog\/optimize-wordpress-speed-hummingbird\/\" target=\"_blank\">prior optimization articles<\/a>, this will be affected by other metrics as well, as there are many components that factor into speed and performance.<\/p>\n<p>There are different caching modules, such as Varnish and FastCGI, along with different types of web servers, such as Nginx, Apache, and LiteSpeed. These modules and servers work in tandem to provide superior caching.<\/p>\n<figure id=\"attachment_200474\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200474\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/001-logos-servers-modules-1050x938.png\" alt=\"Caching modules and services\" width=\"1050\" height=\"938\" \/><figcaption class=\"wp-caption-text\">Some modules and servers in the caching arena.<\/figcaption><\/figure>\n<p>Varnish is a web application accelerator, also known as a caching HTTP reverse proxy. One of its key features is its configuration language, VCL. Offering great flexibility, VCL enables you to write policies on the handling of incoming requests, such as what content you want to serve, where you want to get the content from, and how the request or response should be altered.<\/p>\n<p>Nginx (pronounced Engine-X) started as a simple web server designed for maximum stability and performance, and has evolved into a multi-performance powerhouse, with capabilities to handle reverse proxy with caching, load balancing, WebSockets, index files &amp; auto-indexing, FastCGI support with caching, and more. As the fastest\u2011growing open source web server, with more than 450 million sites dependent on their technology, Nginx is incredibly stable.<\/p>\n<p>We believe FastCGI, served by Nginx, is the cream of the crop. Read on for why.<\/p>\n<h2><a id=\"post-825-_g0dgej8dw9c\" target=\"_blank\"><\/a>Why FastCGI Rules<\/h2>\n<p>FastCGI\u2015an enhanced version of its predecessor, CGI (Common Gateway Interface)\u2015is a binary protocol for interfacing interactive programs with a web server. It\u2019s primary function is to reduce the overhead related to interfacing web server and CGI programs, allowing a server to handle more web page requests per unit of time.<\/p>\n<p>Instead of creating a new process for each request, FastCGI uses persistent processes to handle a series of requests.\u00a0Using Nginx FastCGI, when a user visits the same WordPress page as they did prior, your website will not perform the same PHP and database requests again because the page is already cached and served by FastCGI. Thus, users will have a much faster server response time after the initial visit.<\/p>\n<p>You\u2019ll also have reduced PHP-FPM and MariaDB (MySQL) load, as well as lower CPU usage. And finally, your server will be able to handle more traffic with the same specs, enabling you to better meet more demanding needs.<\/p>\n<p>For a visual on how these elements work together for superior caching, see the infographic below. (We\u2019ll talk about object caching in a bit.)<\/p>\n<figure id=\"attachment_200475\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200475\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/002.0-how-website-serving-with-nginx-fastcgi-works-1050x481.png\" alt=\"Browser request path infographic\" width=\"1050\" height=\"481\" \/><figcaption class=\"wp-caption-text\">Serving a browser request, using FastCGI and Memcached Object Cache.<\/figcaption><\/figure>\n<p>All WordPress pages can gain huge benefits when using FastCGI.<\/p>\n<h2><a id=\"post-825-_8lviwrq3ww79\" target=\"_blank\"><\/a>Caching Policies<\/h2>\n<p>There are two content types to consider when setting your cache: static and dynamic.<\/p>\n<p>Static content is any file that is stored in a server and is the same every time it\u2019s delivered to users. Dynamic content changes based on factors specific to the user such as time of visit, location, and device.<\/p>\n<p>Social media pages are a good example of dynamic content. Twitter feeds look totally different for any given user, and users can interact with the content in order to change it (e.g., by liking, re-tweeting, or commenting).<\/p>\n<p>E-commerce sites are commonly heavy on dynamic content as well. With WooCommerce, for example, certain pages like Home, Shop, and single product pages can be fully cached. However, Cart, Checkout, and My Account pages should be excluded. You do not want to page cache these dynamic pages fully as the latest changes would not be seen.<\/p>\n<p>Dynamic web pages are not stored as static HTML files. Generated server-side, these typically come via origin servers, not from a cache. Since dynamic content can\u2019t be served to multiple users (as it\u2019s unique to each one), it\u2019s difficult to cache. However with advancements in technology, caching dynamic content is possible.<\/p>\n<p>One way to speed up dynamic web pages is to use dynamic compression. In this manner, the content still comes from the origin server instead of a cache, but the HTML files generated are made significantly smaller so that they can reach the client device more quickly.<\/p>\n<p>Just as page caching works on HTML page output, object caching works on your database queries. Object caching is a fantastic solution for caching dynamic content.<\/p>\n<p>Like the other caching components we discussed, there are several persistent object cache contenders in the field, the most well-known being Memcached, Redis, and APCu.<\/p>\n<p>As far as setting your caching policies goes, there isn\u2019t a one size fits all. However, what determines a more or less desirable static cache policy is basing it on the type of content your site is comprised of.<\/p>\n<p>For sites where user comments are steadily being added &amp; approved (often by the minute), or frequent new content is the norm, you should structure your cache policy to clear more often, such as daily or even hourly.<\/p>\n<p>For content that is regularly updated, just not that often, a 30-day cache policy is more than enough.<\/p>\n<p>For static elements like logos, images, page fonts, JS, and core CSS stylesheets, you can extend the max age to one year.<\/p>\n<p>Even <a href=\"https:\/\/web.dev\/http-cache\/#defining-optimal-cache-control-policy\" target=\"_blank\">Google says<\/a> there\u2019s no one best cache policy, but they do offer some tips to assist in devising your caching strategy, beyond the scope of your static assets. These are:<\/p>\n<ul>\n<li>Use consistent URLs<\/li>\n<li>Ensure that the server provides a validation token (ETag)<\/li>\n<li>Identify which resources can be cached by intermediaries (like a CDN)<\/li>\n<li>Determine the optimal lifetime for each resource<\/li>\n<li>Determine the best cache hierarchy for your site<\/li>\n<li>Minimize churn (for a particular part of a resource that is often updated [e.g., JS function or set of CSS styles], deliver that code as a separate file)<\/li>\n<\/ul>\n<p>Popular site speed performance testers, <a href=\"https:\/\/wpmudev.com\/blog\/check-wordpress-site-speed-gtmetrix-lighthouse\/\" target=\"_blank\" rel=\"noopener\">GTmetrix<\/a>, consider resources cacheable if the following conditions are met:<\/p>\n<ul>\n<li>It\u2019s a font, image, media file, script, or stylesheet<\/li>\n<li>It has a 200, 203, or 206 HTTP status code<\/li>\n<li>It doesn\u2019t have an explicit no-cache policy<\/li>\n<\/ul>\n<p>If you use a CDN like Cloudflare, you can set your cache policies through your account. Additionally, if you use our Hummingbird plugin, you can access these settings via the <a href=\"https:\/\/wpmudev.com\/blog\/cloudflare-apo\/\" target=\"_blank\">built in integrations for Cloudflare<\/a>.<\/p>\n<p>As a WPMU DEV hosted member, you can access the primary Static Cache settings through The Hub to enable the extremely efficient static cache policy.<\/p>\n<figure id=\"attachment_200706\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200706\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/09\/static-server-cache-1-1050x160.png\" alt=\"DEV static server cache\" width=\"1050\" height=\"160\" \/><figcaption class=\"wp-caption-text\">Turn on Static Server Cache from The Hub.<\/figcaption><\/figure>\n<p>Ultimately, how you design your cache policy should be based on the type of content you serve, your web traffic, and any application-specific needs that exist for that <em>new<\/em> new data.<\/p>\n<p>There are a number of tools you can use directly within WordPress that make implementing a static cache policy quick and easy. We\u2019ll look at those next.<\/p>\n<h2><a id=\"post-825-_fb1z8vgrsgg6\" target=\"_blank\"><\/a>Plugin Possibilities<\/h2>\n<p>A quick search for caching plugins on WordPress.org will return in excess of a thousand results. That\u2019s a lot of options to wade through. We handpicked a few that we believe to be solid options.<\/p>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/hummingbird-performance\/\" target=\"_blank\">Hummingbird<\/a><\/p>\n<div class=\"image-grid cgrid-row\">\n<div class=\"cgrid-col cgrid-col-span-full\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-ratio-full wp-image-200528\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/004.1-hummingbird-banner-1050x345.png\" alt=\"Hummingbird banner\" width=\"1050\" height=\"345\" \/><\/div>\n<\/div>\n<p>Hummingbird is a one of a kind, world-class caching suite, active on more than +1 million websites.<\/p>\n<p>With Hummingbird\u2019s WordPress speed optimization, your pages will load faster, your search rankings and PageSpeed scores will be higher, and your visitors will be happier. In fact, speeding up your site has never been easier.<\/p>\n<p>Here is just a selection of HB\u2019s standout features: full Page, Browser, RSS, &amp; Gravatar caching; performance reports; minify and combine Javascript, CSS, and Google Font files; GZIP compression for blazing-fast HTML, JS, and stylesheet transfer; configs (set &amp; save your preferred performance settings, and instantly upload to any other site)\u2015and more.<\/p>\n<p>Hummingbird scans your site and provides one-click fixes to speed up WordPress in a flash. And it\u2019s completely free. (Consider <a href=\"https:\/\/wordpress.org\/plugins\/wp-smushit\/\" target=\"_blank\">Smush<\/a> as well; while not a static caching solution, it will compress and lazy load your images for marked speed improvements, and is also free.)<\/p>\n<p><a href=\"https:\/\/wp-rocket.me\/\" target=\"_blank\">WP Rocket<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200478\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/005-wp-rocket-banner-1050x336.png\" alt=\"WP Rocket banner\" width=\"1050\" height=\"336\" \/><\/p>\n<p>With more than 1.5 million users, WP Rocket is a favored caching plugin for WordPress. It&#8217;s a premium service, which you can only install directly from their website.<\/p>\n<p>It\u2019s easy for non-techie users to understand, while more knowledgeable developers can customize it to their liking. It\u2019s compatible with many hosting providers, e-commerce platforms, themes, and other plugins.<\/p>\n<p>WP Rocket automatically starts caching your pages, without any need to tweak the code or mess with settings. Pricing starts at $49, for 1 website\/1 year.<\/p>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/\" target=\"_blank\">WP Super Cache<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200482\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/009-wp-super-cache-banner-1050x331.png\" alt=\"WP Super Cache Banner\" width=\"1050\" height=\"331\" \/><\/p>\n<p>WP Super Cache is from the team behind WordPress.com and WooCommerce&#8230; Automattic. This plugin is free, and has an astounding 2 million+ active installations.<\/p>\n<p>WP Super Cache serves cached files in 3 ways, which are ranked by speed. <em>Expert <\/em>(the fastest), bypasses PHP by using Apache mod-rewrite to serve static html files. <em>Simple <\/em>(mid-level speed, and the recommended way of using the plugin), uses PHP &amp; does not require configuration of the .htaccess file, allowing you to keep portions of your page dynamic. <em>WP-Caching mode<\/em> (the slowest), mainly caches pages for known users, and is the most flexible method.<\/p>\n<p>WP Super Cache comes with recommended settings, one of which is: If you\u2019re not comfortable with editing PHP files, use Simple mode.<\/p>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\" target=\"_blank\">W3 Total Cache<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200479\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/006-w3-total-cache-banner-1050x331.png\" alt=\"W3 Total Cache banner\" width=\"1050\" height=\"331\" \/><\/p>\n<p>W3 Total Cache (W3TC) has over a million users, with an average rating of 4.4 out of 5 stars. It is a free plugin.<\/p>\n<p>W3TC improves the SEO and user experience of your site by increasing website performance, and reducing load times, leveraging features like CDN integration and the latest best practices.<\/p>\n<p>W3 Total Cache remedies numerous performance-reducing aspects of any website. It requires no theme modifications, modifications to your <em>.htaccess<\/em> (mod_rewrite rules) or programming compromises to get started. The options are many and setup is easy.<\/p>\n<p>Some of W3TC features include: transparent CDN management with Media Library, theme files and WordPress itself; mobile support; SSL support; AMP support; minification &amp; compression of pages\/posts in memory; and minification of CSS, JavaScript, and HTML with granular control.<\/p>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/wp-fastest-cache\/\" target=\"_blank\">WP Fastest Cache<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200480\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/007-wp-fastest-cache-banner-1050x331.png\" alt=\"WP Fastest Cache banner\" width=\"1050\" height=\"331\" \/><\/p>\n<p>WP Fastest Cache is another million+ user caching plugin.<\/p>\n<p>Setup is easy; no need to modify the <em>.htaccess<\/em> file (it\u2019s done automatically). It\u2019s got a more minimal set of features, including SSL support, CDN support, Cloudflare support, preload cache, cache timeout for specific pages, and the ability to enable\/disable cache option for mobile devices. WP Fastest Cache is also compatible with WooCommerce.<\/p>\n<p>WP Fastest Cache is free, but offers a premium-for-pay version, which adds additional features, such as: Widget Cache, Minify HTML Plus, Minify CSS Plus, Minify JS, Defer Javascript, Optimize Images, Convert WebP, Google Fonts Async, and Lazy Load.<\/p>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\" target=\"_blank\">LiteSpeed Cache<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200481\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/008-litespeed-cache-banner-1050x340.png\" alt=\"LiteSpeed Cache banner\" width=\"1050\" height=\"340\" \/><\/p>\n<p>LiteSpeed Cache for WordPress (LSCWP) is an all-in-one site acceleration plugin, with more than 2 million active installations.<\/p>\n<p>It features an exclusive server-level cache and a collection of optimization features, such as: free QUIC.cloud CDN cache; lossless\/lossy image optimization; minification of CSS, JavaScript, and HTML; asynchronous loading of CSS; deferred\/delayed JS loading; and WebP image format support.<\/p>\n<p>LSCWP does require use with a web server (LiteSpeed, Apache, NGINX, etc.). It supports WordPress Multisite, and is compatible with most popular plugins, including WooCommerce, bbPress, and Yoast SEO.<\/p>\n<p>LiteSpeed Cache is free, but some of the premium online services provided through QUIC.cloud (CDN Service, Image Optimization, Critical CSS, Low-Quality Image Placeholder, etc.) require payment at certain usage levels.<\/p>\n<p>Ok, now that we\u2019ve covered some viable plugin options for caching, let\u2019s look at what you can do with the cache settings in WPMU DEV\u2019s hosting platform.<\/p>\n<h2><a id=\"post-825-_j8mf5959evib\" target=\"_blank\"><\/a>(Con)figuring it All Out<\/h2>\n<p>The best WordPress hosting providers\u2015leading in sales and racking up rave reviews\u2015have caching built in. Without it, they wouldn\u2019t be competitive enough in today&#8217;s market of tech-savvy web developers.<\/p>\n<p>If you\u2019re looking for tools that are integrated on managed WordPress hosting environments, <a href=\"https:\/\/wpmudev.com\/hosting\/\" target=\"_blank\">WPMU DEV Hosting<\/a>, <a href=\"https:\/\/wpmudev.com\/wp-engine-alternative\/\" target=\"_blank\">WPEngine<\/a>, <a href=\"https:\/\/wpmudev.com\/flywheel-alternative\/\" target=\"_blank\">Flywheel<\/a>, and <a href=\"https:\/\/wpmudev.com\/kinsta-alternative\/\" target=\"_blank\">Kinsta<\/a> all have caching built in. Quite frankly, the systems used by hosting companies are quicker and more effective than WordPress plugins.<\/p>\n<p>With WPMU DEV hosting, we use our own mega caching tool, <strong>Static Server Cache<\/strong>. This is page caching at the server level using FastCGI. Much faster than any PHP plugin, Static Server Cache greatly speeds up your site and allows for an average of 10 times more concurrent visitors.<\/p>\n<p>Understanding and managing the settings for caching in WPMU DEV hosting is an easy, hassle-free experience. C\u2019mon along and you\u2019ll see what I mean.<\/p>\n<p>From your WordPress admin page, go to <strong>WPMU DEV<\/strong>, <strong>Plugins<\/strong>, then click on <strong>The Hub<\/strong> icon.<\/p>\n<figure id=\"attachment_200483\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200483\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/010-wp-dashboard-wpmu-dev-hub-1050x556.png\" alt=\"Hub icon in WP dashboard\" width=\"1050\" height=\"556\" \/><figcaption class=\"wp-caption-text\">One-click access to the Hub from the WPMU DEV dashboard.<\/figcaption><\/figure>\n<p>Next, from <strong>The Hub<\/strong> landing page, click on the site of your choice, under <strong>My Sites<\/strong>.<\/p>\n<figure id=\"attachment_200484\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200484\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/011-hub-my-sites-click-a-site-1050x632.png\" alt=\"Listed sites in WPMU DEV's Hub\" width=\"1050\" height=\"632\" \/><figcaption class=\"wp-caption-text\">The Hub lists all of your hosted sites.<\/figcaption><\/figure>\n<p>From here, click on either of the <strong>Hosting <\/strong>headers.<\/p>\n<figure id=\"attachment_200485\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200485\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/012.0-the-hub-hosting-settings-1050x564.png\" alt=\"Hub hosting settings in WPMU DEV\" width=\"1050\" height=\"564\" \/><figcaption class=\"wp-caption-text\">Two options to get to the hosting tools page.<\/figcaption><\/figure>\n<p>Next you\u2019ll click on <strong>Tools<\/strong>, and scroll down to <strong>Static Server Cache<\/strong>. Click the <strong>Off <\/strong>button, then click <strong>Continue<\/strong> from the \u201cTurn on Static Server Cache\u201d popup window. <span style=\"font-weight: 400;\">(Note: Static Server Cache will be enabled by default for all new server\/hosting accounts created with us.)<\/span><\/p>\n<video loop muted autoplay playsinline class='dev-html5-video'><source src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/vid2-turning-on-static-server-cache-in-the-hub-hosting.webm\" type=\"video\/webm\"><\/video>\n<p style=\"text-align: center;\"><small>Turning Static Server Cache on is a breeze through The Hub.<\/small><\/p>\n<p>You can also do a quick manual clear of the Static Server Cache from here. Simply click the <strong>Clear <\/strong>button, then click <strong>Continue <\/strong>from the \u201cAre you sure?\u201d popup window.<\/p>\n<figure id=\"attachment_200486\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200486\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/013-clear-static-server-cache-full-process-1050x623.png\" alt=\"Clear static server cache\" width=\"1050\" height=\"623\" \/><figcaption class=\"wp-caption-text\">You\u2019ll get a confirmation message indicating the cache clearing action is complete.<\/figcaption><\/figure>\n<p>Static Server Cache is fully integrated with our <a href=\"https:\/\/wpmudev.com\/project\/wp-hummingbird\/\" target=\"_blank\">Hummingbird performance plugin<\/a>, so any action or process in Hummingbird that triggers clearing of the page cache will clear the Static Server Cache as well.<\/p>\n<p>For example, if you click the <strong>Clear Cache<\/strong> button in the Hummingbird plugin and have <strong>Page Caching<\/strong> enabled in settings, the Static Server Cache will be cleared as well. Likewise, if you have options like <em>Clear cache on interval<\/em> or <em>Clear full cache when post\/page is updated<\/em> enabled in Hummingbird, Static Server Cache will follow suit with those settings.<\/p>\n<figure id=\"attachment_200487\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-ratio-full wp-image-200487\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/08\/014-cache-settings-in-hbird-1050x482.png\" alt=\"Cache setting in Hummingbird\" width=\"1050\" height=\"482\" \/><figcaption class=\"wp-caption-text\">Static Server Cache respects cache settings enabled in Hummingbird.<\/figcaption><\/figure>\n<p>WooCommerce is also supported by default, hence any dynamic process in Woo is not cached. So if a user on your site adds items to their cart, that would not be cached by the Static Server Cache.<\/p>\n<p>Below is an itemized list of what does or does not get cached when Static Server Cache is enabled. (Note: The max size of any item is 1 GB.)<\/p>\n<p><strong>Cached:<\/strong><\/p>\n<ul>\n<li>GET\/HEAD requests (that\u2019s your content; e.g., posts, pages, etc.)<\/li>\n<\/ul>\n<p><strong>NOT cached:<\/strong><\/p>\n<ul>\n<li>POST requests (e.g., forms or any other frontend submission)<\/li>\n<li>Query strings<\/li>\n<li>wp-admin, xmlrpc, wp-*.php, feed, index.php, sitemap URIs<\/li>\n<li>If these cookies are found:<br \/>\ncomment_author, wordpress_, wp-postpass, wordpress_no_cache, wordpress_logged_in, woocommerce_items_in_cart<\/li>\n<li>If these WooCommerce URIs are found:<br \/>\n\/store, \/cart, \/my-account, \/checkout, \/addons<\/li>\n<\/ul>\n<p>If you want to check if any page is being cached by our Static Server Cache, pull up our <a href=\"https:\/\/wpmudev.com\/docs\/hosting\/tools-features\/#static-server-cache\" target=\"_blank\">detailed documentation<\/a> for a walkthrough.<\/p>\n<p>Please note that Static Server Cache is not enabled on staging sites.<\/p>\n<h2><a id=\"post-825-_eejcilehc991\" target=\"_blank\"><\/a>Your Cache Cow<\/h2>\n<p>Caching is a reliable and worthy solution to improve your pages&#8217; load speed, and thus your users&#8217; experience. It\u2019s powerful enough to allow refined subtleties for specific content types, but yielding enough to allow easy updates when your site content changes.<\/p>\n<p>While many forms of caching are available, static caching is a method for converting the page generated by a user\u2019s request into an HTML document to serve any subsequent requests to that same page.<\/p>\n<p>Caching images and other static objects will certainly speed up page load time, but caching items such as full HTML documents is what can really amplify a website.<\/p>\n<p>Apart from just basic page caching, make sure your caching solution combines and minifies JavaScript and CSS. Then add Object Caching to take advantage of serving dynamic content, without sacrificing load time or CPU usage.<\/p>\n<p>If you\u2019re looking for a full-featured caching solution, then WPMU DEV\u2019s Hosting plan might be your answer. Pair our FastCGI, accessible via the streamlined Hub interface, with our caching queen, Hummingbird, for the speed round\u2019s 1-2 knock-out punch. With our <a href=\"https:\/\/wpmudev.com\/hosting\/\" target=\"_blank\">30-day money-back guarantee<\/a>, you\u2019ve got nothing to lose!<\/p>\n<p>If you\u2019re a WPMU DEV paid plan user, you already enjoy the full functionality of this feature. Not a member yet? Try it for yourself, with our no-risk <a href=\"https:\/\/wpmudev.com\/pricing\/\" target=\"_blank\">free trial<\/a>, and see why we have so many five-star reviews.<\/p>\n<p>Whatever method you opt for, you\u2019re well advised to put caching tools and policies in place, so response and loading time is never a hindrance to your visitors&#8217; experience, or your conversion success rates. As someone once said\u2026 Cache is King!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What the H double T P? If site loading slowdowns have you shaking your fist, it\u2019s probably time to cache out. When it comes to fast loading WordPress sites, caching is crucial. A well-optimized page cache can dramatically improve page load speed for visitors, and reduce the load on your server. You have a slew [&hellip;]<\/p>\n","protected":false},"author":915455,"featured_media":200653,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263,11259],"tags":[],"tutorials_categories":[11233],"class_list":["post-200472","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-wpmudev-tutorials","tutorials_categories-hosting"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/200472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/915455"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=200472"}],"version-history":[{"count":56,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/200472\/revisions"}],"predecessor-version":[{"id":202863,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/200472\/revisions\/202863"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/200653"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=200472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=200472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=200472"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=200472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}