{"id":25399,"date":"2021-11-10T13:50:13","date_gmt":"2021-11-10T13:50:13","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=25399"},"modified":"2026-03-10T09:36:34","modified_gmt":"2026-03-10T09:36:34","slug":"wordpress-litespeed-website-optimization-tool","status":"publish","type":"post","link":"\/ph\/tutorials\/litespeed-website-optimization-tool\/","title":{"rendered":"Optimizing WordPress on pagespeed and GTmetrix with litespeed cache plugin"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Website speed optimization should be a top priority for every website owner as it directly impacts WordPress SEO. Additionally, the longer a website loads, the higher its bounce rate. This can prevent you from generating conversions and driving traffic to your site.<\/p><p>With the right tools and configurations, caching your website can significantly boost its performance. For this reason, we will show you how to optimize your page score using the best cache plugin from LiteSpeed Technologies.<\/p><p>We have tested the LiteSpeed Cache plugin and configured the settings of three different websites. This article will walk you through the configuration we applied to get the best results.<\/p><p>Before we dive into the settings, let&rsquo;s start with a brief overview of the LiteSpeed cache plugin.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all in one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-litespeed-cache-video-tutorial\">LiteSpeed Cache Video Tutorial <\/h2><p>Tired of reading? Learn about <a href=\"\/ph\/tutorials\/website-optimization\">website optimization<\/a> and how to speed up your website with the LiteSpeed cache plugin tutorial. <\/p><figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"LiteSpeed Cache: How to Get 100% WordPress Optimization\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/drC7cgDP3vU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure><p>\n  <div class=\"youtube-shortcode\">\n    <div class=\"row\">\n      <div class=\"col-7 col-sm-8 d-flex align-items-center\">\n        <img decoding=\"async\" class=\"channel-logo\" src=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/youtube-channels\/hostinger-academy.jpg\" alt=\"youtube channel logo\">\n        <div class=\"d-flex flex-column justify-content-between\">\n          <span class=\"slogan d-none d-sm-block\">Subscribe For more educational videos!<\/span>\n          <span class=\"channel-name\">Hostinger Academy<\/span>\n                    <\/div>\n      <\/div>\n      <div class=\"col-5 col-sm-4 d-flex align-items-center justify-content-end\">\n          <a class=\"subscribe-button\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" href=\"http:\/\/www.youtube.com\/channel\/UCbNIC-svDbtUOH2qsLnPQPg?sub_confirmation=1\">\n            <img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/icons\/youtube.svg\" alt=\"subscribe\">\n            <span>Subscribe<\/span>\n          <\/a>\n      <\/div>\n    <\/div>\n  <\/div>\n\n    \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-litespeed\">What Is LiteSpeed?<\/h2><p>LiteSpeed is web server software designed to accelerate a website&rsquo;s performance. Built with event-driven architecture, the LiteSpeed server can handle higher traffic with fewer processes, reducing resource usage and improving page speed.<\/p><p>The LiteSpeed server also has a built-in <a href=\"\/ph\/tutorials\/what-is-apache\">Apache<\/a> replacement with <strong>.htaccess<\/strong> support, letting users switch from Apache and use existing configurations. Additionally, it works with several popular hosting control panels, such as WHM, DirectAdmin, and Plesk.<\/p><p>There are two editions of the LiteSpeed web server available:<\/p><ul class=\"wp-block-list\">\n<li><strong>LiteSpeed Enterprise<\/strong> &ndash; suitable for hosting multiple websites or a shared hosting environment. It automatically detects changes to the <strong>.htaccess<\/strong> file and adjusts the settings without restarting the server.<\/li>\n\n\n\n<li><strong>OpenLiteSpeed<\/strong> &ndash; an open-source version of LiteSpeed Enterprise that has all of its essential features. It requires a restart whenever it loads a new <strong>.htaccess<\/strong> file. Because of that, this web server is usually used for individual websites.<\/li>\n<\/ul><p>When <a href=\"\/ph\/tutorials\/speed-up-wordpress\">optimizing page speed<\/a> and performance, LiteSpeed uses a built-in server-level cache known as LiteSpeed Cache.<\/p><p>LiteSpeed Cache is a product of LiteSpeed Technologies that optimizes dynamic content on web pages. It comes with advanced caching functionality and optimization features. LiteSpeed Cache is also available as a plugin on several platforms, including WordPress.<\/p><p>LiteSpeed Cache for WordPress (LSCWP) works by storing a copy of website content for future requests. As a result, the server has to process fewer requests and can display web pages faster.<\/p><p>Note that the functions that require server caching are only available in the LiteSpeed server. On the other hand, the optimization features can be used with any web server, including OpenLiteSpeed, Nginx, and Apache. These features include image optimization, <a href=\"\/ph\/tutorials\/what-is-cdn\">CDN (Content Delivery Network)<\/a> integration, and CSS\/JS modification.<\/p><p>Before we proceed, let&rsquo;s take a look at what scores Google PageSpeed Insights gave the mobile and desktop versions of the tested website before setting up LiteSpeed Cache:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/litespeed-before.png\"><img decoding=\"async\" width=\"1024\" height=\"352\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/litespeed-before-1024x352.png\" alt=\"Google PageSpeed Insights' ranking of the mobile and desktop versions of the test website before setting up LiteSpeed Cache.\" class=\"wp-image-42707\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-before-1024x352.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-before-300x103.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-before-150x52.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-before-768x264.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-before-1536x529.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-before.png 1851w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Once LiteSpeed Cache for WordPress was configured, both versions achieved perfect scores:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/litespeed-after.png\"><img decoding=\"async\" width=\"1024\" height=\"362\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/litespeed-after-1024x362.png\" alt=\"Google PageSpeed Insights' ranking of the mobile and desktop versions of the test website before setting up LiteSpeed Cache.\" class=\"wp-image-42709\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-after.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-after-300x106.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-after-150x53.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-after-768x271.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/litespeed-after-1536x542.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-litespeed-cache-plugin-performance-on-openlitespeed-litespeed-web-server-nginx-and-apache\">LiteSpeed Cache Plugin Performance on OpenLiteSpeed, LiteSpeed Web Server, Nginx, and Apache<\/h2><p>Although the LSCache plugin can work outside of the LiteSpeed environment, its functionality differs depending on the web server you&rsquo;re using. Hence, the outcome and process measures will also be different.<\/p><p>For this reason, we have conducted high and small-scale stress tests comparing LiteSpeed Web Server, <a href=\"\/ph\/tutorials\/what-is-nginx\">Nginx<\/a>, and Apache. We will show you three metrics of their performance &ndash; fully processed time, requests per second, and megabytes per second.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> The stress tests were done from Lithuania on servers located in the US.<\/p><\/div>\n\n\n<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/web-server-performance.jpg\"><img decoding=\"async\" width=\"941\" height=\"1024\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/web-server-performance-941x1024.jpg\" alt=\"The performance comparison of Apache, Nginx, OpenLiteSpeed, LiteSpeed Web Server on VPS, and Hostinger Cloud LSWS.\" class=\"wp-image-42598\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/web-server-performance-941x1024.jpg 941w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/web-server-performance-276x300.jpg 276w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/web-server-performance-138x150.jpg 138w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/web-server-performance-768x836.jpg 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/web-server-performance-1412x1536.jpg 1412w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/web-server-performance.jpg 1024w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/a><\/figure><\/div><p>As seen above, the LiteSpeed web servers had the best score. Pairing the LiteSpeed web server with LiteSpeed Cache for WordPress will certainly give your website the most optimal performance.<\/p><h3 class=\"wp-block-heading\">Installing the LiteSpeed Cache Plugin<\/h3><p>Fortunately, the LiteSpeed Cache plugin comes pre-installed with all Hostinger accounts. Thus, Hostinger users can go ahead and skip the <a href=\"\/ph\/tutorials\/wordpress\/how-to-install-wordpress-plugins\">plugin installation<\/a> step.<\/p><p>However, if you&rsquo;re using a different web host, follow the instructions below to install LiteSpeed Cache for WordPress.<\/p><ol class=\"wp-block-list\">\n<li>Log in to your WordPress admin dashboard and go to the <strong>Plugins<\/strong> section.<\/li>\n\n\n\n<li>Search for <strong>LiteSpeed Cache<\/strong>, click <strong>Install Now<\/strong> and <strong>Activate<\/strong>.<\/li>\n\n\n\n<li>Refresh the page &ndash; the LiteSpeed cache section will be on your dashboard.<\/li>\n<\/ol><p>Once the WordPress plugin is installed, you&rsquo;ll have to configure it. Read the following section to find out the best LiteSpeed cache settings for your WordPress site.<\/p><h2 class=\"wp-block-heading\" id=\"h-best-settings-for-the-litespeed-cache-for-wordpress-plugin\">Best Settings for the LiteSpeed Cache for WordPress Plugin<\/h2><p>We have tested these LiteSpeed Cache settings on three websites powered by shared hosting &ndash; a simple blogging site, an eCommerce website, and an online portfolio.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> When testing performance on GTmetrix, do it a few times regardless of the caching plugin you&rsquo;re using, as the cache might not be hit or loaded the first time. Additionally, be sure to purge the cache before testing any new setting.<\/p><\/div>\n\n\n\n<\/p><p>Hostinger WordPress hosting clients can use <strong>LiteSpeed Optimization Profiles<\/strong> to optimize their website&rsquo;s performance with one click. These profiles have pre-configured settings for optimizing different aspects of your website, eliminating the hassle of manual configurations.<\/p><p>Please note that this feature only works with the LiteSpeed Cache plugin for optimizing live WordPress websites.<\/p><p>Follow these steps to configure LiteSpeed Optimization Profiles for improved WordPress performance:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>WordPress <\/strong>&rarr; <strong>Overview <\/strong>from hPanel.<\/li>\n\n\n\n<li>Scroll down to the <strong>Core <\/strong>section and make sure the <strong>LiteSpeed<\/strong> option is toggled on.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-litespeed.png\"><img decoding=\"async\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-litespeed.png\" alt=\"LiteSpeed feature in hPanel\"><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Select <strong>Change settings<\/strong> &rarr; <strong>Apply settings<\/strong> on one of the three optimization profiles:<\/li>\n<\/ol><ul class=\"wp-block-list\">\n<li><strong>Basic <\/strong>&#8210; implements basic optimizations to improve load times and user experience.<\/li>\n\n\n\n<li><strong>Advanced <\/strong>&#8210; the recommended profile for optimizing all website types.<\/li>\n\n\n\n<li><strong>Aggressive <\/strong>&#8210; performs advanced optimizations for the best possible performance.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-litespeed-optimization-profiles.png\"><img decoding=\"async\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-litespeed-optimization-profiles-1024x704.png\" alt=\"LiteSpeed optimization profiles in Hostinger\"><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Read the disclaimer and hit <strong>Apply <\/strong>to confirm.<\/li>\n\n\n\n<li>The <strong>Configuration change log<\/strong> section below the profile options tracks each switch to a new optimization preset. Click <strong>Restore <\/strong>to reset the LiteSpeed Cache settings to their previous state if needed.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-litespeed-configuration-change-log.png\"><img decoding=\"async\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-litespeed-configuration-change-log-1024x192.png\" alt=\"LiteSpeed's configuration change log section in hPanel\"><\/a><\/figure><\/div><p>Alternatively, check out the following tutorial to set up the LiteSpeed Cache plugin manually. Each setting will include a detailed description to help you decide whether you need to tweak it.<\/p><h3 class=\"wp-block-heading\">1. Complete the Basic Setup<\/h3><p>Before we get into the steps of completing the basic setup, let&rsquo;s compare the performance test results of the three websites.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/LiteSpeed-Cache-Plugin-Performance.jpg\"><img decoding=\"async\" width=\"599\" height=\"1024\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/LiteSpeed-Cache-Plugin-Performance-599x1024.jpg\" alt=\"LiteSpeed - Cache Plugin Performance\" class=\"wp-image-58456\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Cache-Plugin-Performance-599x1024.jpg 599w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Cache-Plugin-Performance-175x300.jpg 175w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Cache-Plugin-Performance-88x150.jpg 88w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Cache-Plugin-Performance-768x1313.jpg 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Cache-Plugin-Performance-898x1536.jpg 898w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Cache-Plugin-Performance.jpg 702w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/a><\/figure><\/div><p>The graph above shows a significant improvement in website performance after activating and configuring the LiteSpeed Cache plugin.<\/p><p>For this reason, we will walk you through the features and functionalities of the LiteSpeed Cache plugin, along with the best settings to apply &ndash; starting with the <strong>General<\/strong> page.<\/p><p>The first option on this page is <strong>Automatically upgrade<\/strong>. As the name suggests, switching this button to <strong>On<\/strong> will prompt the system to install the latest version of the LSCache plugin.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-automatically-update.png\"><img decoding=\"async\" width=\"1024\" height=\"80\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-automatically-update-1024x80.png\" alt=\"The option to turn automatic updates on.\" class=\"wp-image-42601\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-automatically-update-1024x80.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-automatically-update-300x23.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-automatically-update-150x12.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-automatically-update-768x60.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-automatically-update-1536x120.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-automatically-update.png 1588w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Next, there is a field to add your domain key, also known as the API key. This is important to have if you want to use <strong>QUIC.cloud<\/strong> <a href=\"https:\/\/quic.cloud\/quic-cloud-services-and-features\/\" target=\"_blank\" rel=\"noopener\">features and services<\/a>. Simply click on the <strong>Request Domain Key<\/strong> button.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-domain-key.png\"><img decoding=\"async\" width=\"1024\" height=\"61\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-domain-key-1024x61.png\" alt=\"The option to enter the API key for the LiteSpeed Cache plugin.\" class=\"wp-image-42602\" style=\"width:840px;height:50px\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-1024x61.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-300x18.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-150x9.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-768x46.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key.png 1180w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>We will talk more about setting up the <strong>QUIC.cloud<\/strong> in the following section. Now, go to the next section, and you will see <strong>Guest Mode<\/strong>.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-guest-mode.png\"><img decoding=\"async\" width=\"1024\" height=\"117\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-guest-mode-1024x117.png\" alt=\"Guest Mode setup for the LiteSpeed Cache plugin.\" class=\"wp-image-42603\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-mode-1024x117.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-mode-300x34.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-mode-150x17.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-mode-768x88.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-mode-1536x176.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-mode.png 1569w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>This option provides an automatic cacheable landing page for a guest&rsquo;s first-time request. When you enable the guest mode, the server won&rsquo;t have to gain visitors&rsquo; information and instead will serve them the default cached page. As a result, the page loading time will be shorter.<\/p><p>Once the cached pages are served, the server will make an Ajax call to fetch the proper version of web pages the visitors requested. To enable the guest mode, simply switch it <strong>On<\/strong>.<\/p><p>To optimize the guest mode, use the <strong>Guest Optimization<\/strong> option.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-guest-optimization.png\"><img decoding=\"async\" width=\"1024\" height=\"122\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-guest-optimization-1024x122.png\" alt=\"Guest Mode Optimization setup for the LiteSpeed Cache plugin.\" class=\"wp-image-42604\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-optimization-1024x122.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-optimization-300x36.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-optimization-150x18.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-optimization-768x91.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-optimization-1536x182.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-guest-optimization.png 1558w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>When you enable this setting, the server will not only serve the default cached page, but it will also perform image and page optimization even if these features are disabled.<\/p><p>However, guest mode optimization might take up some of your WordPress website resources, so it&rsquo;s best to consult your hosting provider before activating this setting.<\/p><p>Underneath, there is a <strong>Server IP<\/strong> field for your site&rsquo;s <a href=\"\/ph\/tutorials\/what-is-ip-address\">IP address<\/a>. Including your IP address will allow the <a href=\"https:\/\/docs.litespeedtech.com\/lscache\/lscwp\/crawler\/\" target=\"_blank\" rel=\"noopener\">crawler<\/a> to retrieve resources directly from your server, improving your site&rsquo;s performance.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-server-ip.png\"><img decoding=\"async\" width=\"1024\" height=\"126\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-server-ip-1024x126.png\" alt=\"The field to enter your server's IP address in.\" class=\"wp-image-42605\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-server-ip-1024x126.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-server-ip-300x37.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-server-ip-150x18.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-server-ip-768x95.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-server-ip-1536x189.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-server-ip.png 1576w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Contact your hosting provider for information about your website&rsquo;s IP address. Hostinger users can access the hPanel dashboard and go to <strong>Hosting<\/strong> -&gt; <strong>Manage<\/strong> -&gt; <strong>Details<\/strong>.<\/p><p>Further down, there is the <strong>Notifications<\/strong> setting. By enabling it, you will get the latest information about the LSCache plugin&rsquo;s development, including promotions and new releases.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-notifications.png\"><img decoding=\"async\" width=\"1024\" height=\"96\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-notifications-1024x96.png\" alt=\"The option to turn LSCache notifications on.\" class=\"wp-image-42606\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-notifications-1024x96.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-notifications-300x28.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-notifications-150x14.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-notifications-768x72.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-notifications.png 1224w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Be sure to save your changes after configuring the settings.<\/p><h3 class=\"wp-block-heading\">2. Tweak Cache Settings<\/h3><p>The LiteSpeed Cache settings page includes features mostly applicable to the LiteSpeed web servers or the QUIC.cloud CDN. There are multiple functions in the LiteSpeed Cache settings page &ndash; this section will cover all caching features to help you choose the best approach.<\/p><ul class=\"wp-block-list\">\n<li><strong>Enable Cache &ndash; ON<\/strong>. Switching this on will trigger the system to cache your WordPress site automatically. Although turning this function off will not affect your site&rsquo;s content, all cached files will be purged. We recommend keeping the default settings for better loading times.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-enable-cache.png\"><img decoding=\"async\" width=\"1024\" height=\"86\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-enable-cache-1024x86.png\" alt=\"The option to enable cache on the LSCache plugin.\" class=\"wp-image-42607\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-enable-cache-1024x86.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-enable-cache-300x25.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-enable-cache-150x13.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-enable-cache-768x64.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-enable-cache.png 1383w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Cache Logged-in Users &ndash; OFF<\/strong>. This setting automatically caches web pages for logged-in users. However, enabling this setting will take up server resources. It&rsquo;s best to keep this option disabled unless you run a <a href=\"\/ph\/tutorials\/how-to-create-a-membership-website-wordpress\">membership website<\/a>.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/litespeed-cache-settings-cache-login-users-off.png\"><img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/litespeed-cache-settings-cache-login-users-off-1024x92.png\" alt=\"The caching for logged-in users option turned off.\" class=\"wp-image-125230\"><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Cache Commenters &ndash; OFF<\/strong>. The output of this function depends on your comment moderation setting. If both cache commenters and cache moderation settings are enabled, users will not see their comments immediately. Conversely, if the cache commenters function is disabled, users will see their pending comments.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/litespeed-cache-settings-cache-commenter-off.png\"><img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/litespeed-cache-settings-cache-commenter-off-1024x104.png\" alt=\"The caching for pending commenters option turned off.\" class=\"wp-image-125231\"><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Cache REST API &ndash; ON<\/strong>. This enables you to cache requests from the <a href=\"\/ph\/tutorials\/wordpress-rest-api\">WordPress REST API<\/a> calls. These calls are generally made by third-party web applications integrated with WordPress, including themes, plugins, and the <a href=\"\/ph\/tutorials\/gutenberg-wordpress\">block editor<\/a>.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-rest-api.png\"><img decoding=\"async\" width=\"1024\" height=\"94\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-rest-api-1024x94.png\" alt=\"The option to turn caching on for WordPress REST API calls.\" class=\"wp-image-42610\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-rest-api-1024x94.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-rest-api-300x28.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-rest-api-150x14.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-rest-api-768x71.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-rest-api.png 1127w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Cache Login Page &ndash; ON<\/strong>. It serves cached versions of the login pages. It&rsquo;s best to leave this enabled as it will make your WordPress site load faster every time a visitor lands on your page.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-login-page.png\"><img decoding=\"async\" width=\"1024\" height=\"81\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-login-page-1024x81.png\" alt=\"The option to turn on caching for login pages.\" class=\"wp-image-42611\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-login-page-1024x81.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-login-page-300x24.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-login-page-150x12.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-login-page-768x61.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-login-page.png 1252w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Cache favicon.ico &ndash; ON<\/strong>. Keeping this function enabled will help avoid unnecessary PHP calls and make the server response faster. Otherwise, the system will look for the <strong>favicon.ico<\/strong> file and force the WordPress PHP backend to run, <a href=\"\/ph\/tutorials\/why-is-my-wordpress-site-so-slow\">slowing down your WordPress website<\/a>.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-favicon.png\"><img decoding=\"async\" width=\"1024\" height=\"93\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-favicon-1024x93.png\" alt=\"The option to turn on caching for favicon.ico.\" class=\"wp-image-42612\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-favicon-1024x93.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-favicon-300x27.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-favicon-150x14.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-favicon-768x69.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-favicon.png 1338w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Cache PHP Resources &ndash; ON<\/strong>. This function caches static elements, including CSS and JS files generated by WordPress themes. Keep the setting enabled to speed up performance and avoid unnecessary PHP scripts.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-php-resources.png\"><img decoding=\"async\" width=\"1024\" height=\"90\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-php-resources-1024x90.png\" alt=\"The option to turn on caching of PHP resources.\" class=\"wp-image-42613\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-php-resources-1024x90.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-php-resources-300x26.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-php-resources-150x13.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-php-resources-768x67.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-php-resources.png 1370w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Cache Mobile &ndash; ON<\/strong>. It allows you to serve different cache content on desktop and mobile devices. Unless you have an <a href=\"\/ph\/tutorials\/wordpress-amp\/\">AMP (Accelerated Mobile Pages)<\/a> version of your WordPress site, we recommend keeping this off.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/litespeed-cache-settings-cache-mobile-on.png\"><img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/litespeed-cache-settings-cache-mobile-on-1024x117.png\" alt=\"The option to cache the different content served to mobile users turned on.\" class=\"wp-image-125233\"><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>List of Mobile User Agents<\/strong>. This setting is only available if you turn the cache mobile function on. You can add a list of mobile user agents in a rewrite-rule-friendly format. For example, each user agent can be written on one line.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-mobile-user-agents.png\"><img decoding=\"async\" width=\"1024\" height=\"212\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-mobile-user-agents-1024x212.png\" alt=\"The option to add rules for different mobile user agents.\" class=\"wp-image-42615\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-mobile-user-agents-1024x212.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-mobile-user-agents-300x62.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-mobile-user-agents-150x31.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-mobile-user-agents-768x159.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-mobile-user-agents.png 1370w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Private Cached URIs<\/strong>. Contains paths that will be privately cached. However, this function is similar to the <strong>cache logged-in users<\/strong> option that also handles private cached URIs. Unless you want to privately cache specific pages that are not user-related, leave the field empty.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-cached-uris.png\"><img decoding=\"async\" width=\"1024\" height=\"157\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-cached-uris-1024x157.png\" alt=\"The setting to set up URIs that will be privately cached.\" class=\"wp-image-42616\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cached-uris-1024x157.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cached-uris-300x46.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cached-uris-150x23.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cached-uris-768x117.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cached-uris-1536x235.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cached-uris.png 1583w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Force Cache URIs<\/strong>. The system will force-cache every path written in the provided field regardless of any non-cacheable settings. Generally, you won&rsquo;t have to worry about this function since you don&rsquo;t need to force the cache for most of your pages.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-force-cache-uris.png\"><img decoding=\"async\" width=\"1024\" height=\"199\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-force-cache-uris-1024x199.png\" alt=\"The option to force-cache selected URIs.\" class=\"wp-image-42638\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-force-cache-uris-1024x199.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-force-cache-uris-300x58.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-force-cache-uris-150x29.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-force-cache-uris-768x149.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-force-cache-uris-1536x298.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-force-cache-uris.png 1570w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Force Public Cache URIs<\/strong>. Forces specific content types to be cached as public regardless of their settings.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-public-cache.png\"><img decoding=\"async\" width=\"1024\" height=\"191\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-public-cache-1024x191.png\" alt=\"The option to force public caching of selected URIs.\" class=\"wp-image-42618\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-public-cache-1024x191.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-public-cache-300x56.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-public-cache-150x28.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-public-cache-768x143.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-public-cache-1536x286.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-public-cache.png 1596w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li><strong>Drop Query String<\/strong>. Ignores any query strings added in the field and speeds up the website loading time. The default setting already lists some of the most commonly generated strings. However, you can always add more query strings if necessary.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-drop-query-strings.png\"><img decoding=\"async\" width=\"1024\" height=\"170\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-drop-query-strings-1024x170.png\" alt=\"The option to ignore certain query strings when caching.\" class=\"wp-image-42619\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-drop-query-strings-1024x170.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-drop-query-strings-300x50.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-drop-query-strings-150x25.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-drop-query-strings-768x127.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-drop-query-strings.png 1480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>All in all, the LSCache plugin applies default settings suitable for most WordPress websites. That said, we recommend tweaking them according to your needs.<\/p><p>In addition to the LiteSpeed Cache settings page, let&rsquo;s briefly overview the other available sections along with their main functionality:<\/p><ul class=\"wp-block-list\">\n<li><strong>TTL (Time To Live)<\/strong> &ndash; this function controls how long specific content types are stored in the cache. The default settings should work fine, but you can reduce or increase the numbers as needed.<\/li>\n\n\n\n<li><strong>Purge<\/strong> &ndash; provides all settings to remove certain content types from the cache. We recommend enabling purge on all upgrades to allow the system to <a href=\"\/ph\/tutorials\/wordpress\/how-to-clear-wordpress-cache\">clear the outdated WordPress cache<\/a> whenever an update is available. If you have sufficient resources, enable server stale for better performance.<\/li>\n\n\n\n<li><strong>Excludes<\/strong> &ndash; helps specify which content types you want to exclude from the cache. There are various fields to fill out, including site URIs and query strings. Fill out the strings accordingly, and the system will prevent them from being cached.<\/li>\n\n\n\n<li><strong>ESI (Edge Side Includes)<\/strong> &ndash; separates specific parts of a website page into fragments. You can choose to store these parts in a public or private cache. Once enabled, the system will reassemble the pages before serving them to the browser.<\/li>\n\n\n\n<li><strong>Object<\/strong> &ndash; reduces database load for dynamic web applications. The LiteSpeed object caching system stores database query results and retrieves the information from the cache instead of reloading it.<\/li>\n<\/ul><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Hostinger offers the object cache feature in selected plans. You can find it under the <b>Core<\/b> section of the hPanel dashboard. After enabling <b>LiteSpeed<\/b>, click the toggle button next to <b>Object cache<\/b> to enable the Memcached configuration.<\/p>\n                <\/div>\n\n\n\n<\/p><ul class=\"wp-block-list\">\n<li><strong>Browser<\/strong> &ndash; <a href=\"\/ph\/tutorials\/website\/improving-website-performance-leveraging-browser-cache\">enabling browser caching<\/a> allows the system to automatically store dynamic content of your WordPress site in the users&rsquo; browser cache. The server will process fewer browser requests and serve the pages more efficiently.<\/li>\n\n\n\n<li><strong>Advanced<\/strong> &ndash; the settings on this tab are designated for advanced users. Here, you can enable the HTTP\/HTTPS functionality to avoid conflicts with login cookies. Furthermore, an instant click function can load a web page in the background as soon as your visitors hover over it.<\/li>\n<\/ul><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner-1024x300.png\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-1024x300.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-768x225.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-1536x450.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\">3. Refine Page and Image Optimization Options<\/h3><p>The LiteSpeed Cache plugin includes <a href=\"\/ph\/tutorials\/website-optimization-tools\">website optimization tools<\/a> for dynamic content on WordPress sites, including images and web pages. Taking the time to configure these settings is important as they can affect your website&rsquo;s SEO.<\/p><p>This section will walk you through each function and setting on each optimization tab.<\/p><p><strong>Image Optimization<\/strong><\/p><p>Whenever visitors access your WordPress site, the browser requests resources and downloads your images before displaying them. Thus, the browser will take longer to load, resize, and render unoptimized images.<\/p><p>Fortunately, the LiteSpeed Cache plugin can optimize your images individually or in bulk by resizing them.<\/p><p>    <p class=\"warning\">\n        <strong>Warning!<\/strong> Do not use another optimization plugin while using the LiteSpeed Cache plugin, as it might trigger system and processing errors.    <\/p>\n    \n\n\n\n<\/p><p>Upon entering the image optimization page, you will see the <strong>Image Optimization Summary<\/strong> tab. This tab monitors multiple metrics, such as the size reduction and the total amount of images pulled from your website.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-image-optimization-summary.png\"><img decoding=\"async\" width=\"1024\" height=\"321\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-image-optimization-summary-1024x321.png\" alt=\"The Image Optimization Summary tab of the LSCache for WordPress plugin.\" class=\"wp-image-42620\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-image-optimization-summary.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-image-optimization-summary-300x94.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-image-optimization-summary-150x47.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-image-optimization-summary-768x241.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-image-optimization-summary-1536x481.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Additionally, you can utilize a few other functions, such as:<\/p><ul class=\"wp-block-list\">\n<li><strong>Gather Image Data<\/strong> &ndash; available after uploading new pictures. Once done, the <strong>Send Optimization Request<\/strong> button will appear, enabling you to send the images to the LiteSpeed cloud server.<\/li>\n<\/ul><p><div><p class=\"important\"><strong>Important!<\/strong> This functionality is only available after you have added your domain key and activated the QUIC.Cloud CDN.<\/p><\/div>\n\n\n\n<\/p><ul class=\"wp-block-list\">\n<li><strong>Pull Images<\/strong> &ndash; pulls your optimized images from the cloud back to your WordPress site.<\/li>\n\n\n\n<li><strong>Clean Up Unfinished Data<\/strong> &ndash; erases unfinished processes and starts them again whenever the optimization process gets stuck.<\/li>\n\n\n\n<li><strong>Calculate Backups Disk Space<\/strong> &ndash; counts the available disk space for backup files.<\/li>\n\n\n\n<li><strong>Remove Original Image Backups<\/strong> &ndash; deletes the backups of original images to free up disk space. We recommend downloading the backups to your local computer before opting for this function. You won&rsquo;t be able to revert optimization settings after deleting all backups.<\/li>\n\n\n\n<li><strong>Rescan New Thumbnails<\/strong> &ndash; scans newly added images on your website and sends optimization requests to the system.<\/li>\n\n\n\n<li><strong>Use Original Files &amp; Use Optimized Files<\/strong> &ndash; provides options to switch between the unoptimized and optimized images on your website.<\/li>\n\n\n\n<li><strong>Destroy All Optimization Data<\/strong> &ndash; removes all data and reverts all settings to the original values.<\/li>\n<\/ul><p>Now, let&rsquo;s continue to the next tab and apply the best optimization settings for your WordPress website. Simply click on the <strong>Image Optimization Settings<\/strong>, and you will see multiple functionalities to tweak:<\/p><ul class=\"wp-block-list\">\n<li><strong>Auto Request Cron &ndash; ON<\/strong>. This function automatically sends optimization requests via <a href=\"\/ph\/tutorials\/how-to-setup-and-manage-a-wordpress-cron-job\">WordPress cron job<\/a> whenever new images are uploaded.<\/li>\n\n\n\n<li><strong>Auto Pull Cron &ndash; ON<\/strong>. It works together with the previous function. Thus, you should enable both functions. Otherwise, you will need to send every newly uploaded image using the <strong>Pull Images<\/strong> button.<\/li>\n\n\n\n<li><strong>Optimize Original Images &ndash; ON<\/strong>. You should always keep this function turned on as it optimizes <strong>.png<\/strong> and <strong>.jpg<\/strong> images and generates the backup files. Only disable it if you don&rsquo;t want to optimize your images.<\/li>\n\n\n\n<li><strong>Remove Original Backups &ndash; OFF<\/strong>. Keep in mind that this function is irreversible. Enabling it will erase all backups, preventing you from reverting any optimization settings.<\/li>\n\n\n\n<li><strong>Optimize Losslessly &ndash; ON<\/strong>. This will optimize your images using <a href=\"\/ph\/tutorials\/lossy-vs-lossless\">lossless compression<\/a>.<\/li>\n\n\n\n<li><strong>Preserve EXIF\/XMP Data &ndash; OFF<\/strong>. This setting is enabled by default. However, preserving <a href=\"https:\/\/photographylife.com\/what-is-exif-data\" target=\"_blank\" rel=\"noopener\">EXIF\/XMP<\/a> data might increase the size of your optimized images. Thus, it&rsquo;s better to disable this function.<\/li>\n\n\n\n<li><strong>Create WebP Versions &ndash; ON<\/strong>. Turning this function on will generate <a href=\"\/ph\/tutorials\/what-is-webp\"><strong>.webp<\/strong> files<\/a> of your images. This results in a bigger size reduction of up to 30%, speeding up your website loading times.<\/li>\n\n\n\n<li><strong>Image WebP Replacement &ndash; ON<\/strong>. If you have enabled the previous setting, you should also turn this option on as it replaces <strong>.jpg<\/strong> and <strong>.png<\/strong> images with <strong>.webp<\/strong> files.<\/li>\n\n\n\n<li><strong>WebP Attribute To Replace<\/strong>. Controls which <a href=\"\/ph\/tutorials\/best-image-formats\">image formats<\/a> to replace with <strong>.webp<\/strong>. Simply enter one image attribute per line inside the box.<\/li>\n\n\n\n<li><strong>WebP For Extra srcset &ndash; ON<\/strong>. It works to serve custom code with <strong>srcset<\/strong> elements as <strong>.webp<\/strong> versions.<\/li>\n\n\n\n<li><strong>WordPress Image Quality Control<\/strong>. The default image quality should work fine. You can tweak the setting as you need, but remember to keep the value at less than 100.<\/li>\n<\/ul><p><strong>Page Optimization<\/strong><\/p><p>Once you have set the image optimization settings, the next step is to tweak the page optimization functions. Failure to do so will likely result in slower loading times and worse page scores.<\/p><p>Fortunately, when it comes to page optimization, the LiteSpeed Cache plugin provides multiple options to improve your WordPress site performance. This page contains the most important settings to optimize HTML, CSS, and JS files.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-page-optimization.png\"><img decoding=\"async\" width=\"1024\" height=\"408\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-page-optimization-1024x408.png\" alt=\"LSCache for WordPress' page optimization settings.\" class=\"wp-image-42621\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-page-optimization.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-page-optimization-300x120.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-page-optimization-150x60.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-page-optimization-768x306.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-page-optimization-1536x612.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>The page optimization page has several sections &ndash; we will overview each along with its functionalities.<\/p><p><strong>CSS Settings<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>CSS Minify &ndash; ON<\/strong>. This setting strips away unnecessary elements, such as extra white space and new line characters from the CSS files.<\/li>\n\n\n\n<li><strong>CSS Combine &ndash; OFF<\/strong>. Enabling this will prompt the system to combine all individual CSS files into a single CSS file. However, we recommend disabling it unless you have extra space since this function can take up resources.<\/li>\n\n\n\n<li><strong>Generate UCSS &ndash; OFF<\/strong>. This setting works hand-in-hand with the <strong>CSS combine<\/strong> function. Thus, if you decide to disable the previous function, you should also keep this setting off.<\/li>\n\n\n\n<li><strong>UCSS Inline &ndash; OFF<\/strong>. It reduces extra CSS file loading by storing the UCSS inline with the HTML. This function also works collaboratively with <strong>CSS combine<\/strong>, so only enable it if you have turned the previous setting on. Additionally, enabling this will bypass the <strong>Load CSS Asynchronously<\/strong> option.<\/li>\n\n\n\n<li><strong>CSS Combine External and Inline &ndash; OFF<\/strong>. This option helps combine external CSS files with those found with the HTML inline elements. To avoid errors, enable this option with the <strong>CSS combine<\/strong>.<\/li>\n\n\n\n<li><strong>Load CSS Asynchronously &ndash; OFF<\/strong>. Turning this option on allows your CSS and HTML elements to load at the same time. However, they might be loaded without formatting. This can result in a layout shift or a flash of unstyled content (FOUC).<\/li>\n\n\n\n<li><strong>CCSS Per URL &ndash; OFF<\/strong>. Setting this function off will generate critical CSS for every post type instead of for individual pages. This will save the CCSS quota and disk space.<\/li>\n\n\n\n<li><strong>Inline CSS Async Lib &ndash; ON<\/strong>. This option avoids render-blocking by inlining the asynchronous CSS library.<\/li>\n\n\n\n<li><strong>Font Display Optimization<\/strong>. Keep the default value as modifying this setting might cause FOUC issues.<\/li>\n<\/ul><p><strong>JS Settings<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>JS Minify &ndash; ON<\/strong>. It removes unnecessary scripts for JS optimization.<\/li>\n\n\n\n<li><strong>JS Combine &ndash; OFF<\/strong>. This compiles all individual JS files into a single file.<\/li>\n\n\n\n<li><strong>JS Combine External and Inline &ndash; OFF<\/strong>. This function works similarly to the combined CSS external and inline options. Only enable this if you have also turned the previous function on.<\/li>\n\n\n\n<li><strong>Load JS Deferred &ndash; depends<\/strong>. Before tweaking this option, do some testing as the results might vary. If you choose <strong>Deferred<\/strong>, the system will load JS right after the HTML. Meanwhile, the <strong>Delayed<\/strong> option will only start if the system detects user activity.<\/li>\n<\/ul><p><strong>HTML Settings<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>HTML Minify &ndash; ON<\/strong>. Erases unnecessary characters inside the HTML code.<\/li>\n\n\n\n<li><strong>DNS Prefetch<\/strong>. Carries out DNS resolution of the listed domains before they are requested by your visitors, reducing your page loading time. This is useful for loading external links, such as AdSense or Facebook.<\/li>\n\n\n\n<li><strong>DNS Prefetch Control &ndash; ON<\/strong>. If you add links in the previous setting, this function will automatically prefetch the listed DNS along with all URLs in your posts and pages, including CSS, JavaScript, and images.<\/li>\n\n\n\n<li><strong>HTML Lazy Load Selectors<\/strong>. Specify which class or ID to lazy load by adding one per line in the provided field.<\/li>\n\n\n\n<li><strong>Remove Query Strings &ndash; OFF<\/strong>. This option generally doesn&rsquo;t directly affect your website&rsquo;s performance, so keeping it off should be fine.<\/li>\n\n\n\n<li><strong>Load Google Fonts Asynchronously &ndash; OFF<\/strong>. It loads Google Fonts asynchronously while leaving other CSS elements intact. However, we recommend disabling this option as most Google Fonts are already cached in your visitors&rsquo; browsers.<\/li>\n\n\n\n<li><strong>Remove Google Fonts &ndash; ON<\/strong>. Enable this setting only if you store fonts locally and don&rsquo;t want any third-party fonts to be loaded on your WordPress site.<\/li>\n\n\n\n<li><strong>Remove WordPress Emoji &ndash; ON<\/strong>. Activating this functionality will prevent the system from loading the WordPress.org emoji and load the default ones instead.<\/li>\n\n\n\n<li><strong>Remove Noscript Tags &ndash; OFF<\/strong>. Keeping this option on helps ensure compatibility with all browsers, including the older versions.<\/li>\n<\/ul><p><strong>Media Settings<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Lazy Load Images &ndash; ON<\/strong>. This option allows the system to lazy load images on your website. Although doing this can speed up the loading time, it might impact the user experience.<\/li>\n\n\n\n<li><strong>Basic Image Placeholder<\/strong>. When you enable lazy loading, a gray image placeholder will be displayed. However, you can also customize it by defining the base64 of an image and adding it to the field. Use an <a href=\"https:\/\/elmah.io\/tools\/base64-image-encoder\/\" target=\"_blank\" rel=\"noopener\">online tool<\/a> to find out the base64 of an image.<\/li>\n\n\n\n<li><strong>Responsive Placeholder &ndash; ON<\/strong>. This option enables your image placeholder to fit with the image&rsquo;s dimensions, reducing layout reshuffle.<\/li>\n\n\n\n<li><strong>Responsive Placeholder SVG<\/strong>. Specify an SVG file to use as your placeholder image. The system will automatically convert it to a base64 placeholder.<\/li>\n\n\n\n<li><strong>Responsive Placeholder Color<\/strong>. The default value works fine. Alternatively, customize the color by moving the color picker.<\/li>\n\n\n\n<li><strong>LQIP Cloud Generator &ndash; OFF<\/strong>. Enabling this will generate a low-quality image placeholder displaying a blurred version of your image as it loads. Keep this setting off if you prefer to use plain color as a placeholder.<\/li>\n\n\n\n<li><strong>LQIP Quality<\/strong>. Defines the quality of your LQIP. The value ranges from 1 to 20, and the higher the value, the higher the resolution. However, setting it to a larger value might increase loading times.<\/li>\n\n\n\n<li><strong>LQIP Minimum Dimensions<\/strong>. The LQIP will only appear on images with the same dimensions as specified in the settings. It won&rsquo;t load on images that have smaller heights and widths.<\/li>\n\n\n\n<li><strong>Generate LQIP In Background &ndash; ON<\/strong>. Turning this on allows the system to load LQIP in the background via a cron-based queue. Setting this off might increase your loading times.<\/li>\n\n\n\n<li><strong>Lazy Load frames &ndash; ON<\/strong>. It works similarly to lazy loading images. This function helps lazy load frames, such as maps and videos.<\/li>\n\n\n\n<li><strong>Add Missing Sizes &ndash; ON<\/strong>. Sets a defined width and height for your images and helps the LiteSpeed Cache plugin add the missing image dimensions automatically. This setting only works if image lazy loading is on.<\/li>\n\n\n\n<li><strong>Inline Lazy Load images Library &ndash; ON<\/strong>. Turning this on helps improve your page score.<\/li>\n<\/ul><p><strong>Media Excludes<\/strong><\/p><p>These settings will exclude certain images from being lazy loaded. Excluding above-the-fold images, such as logos and background images, can improve user experience. This is because you will want those elements to load before the rest of the page.<\/p><p>To exclude media from lazy loading, simply fill out the information in the provided field accordingly. For example, exclude the images by their class and parent class name.<\/p><p><strong>Localization<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Gravatar Cache &ndash; ON<\/strong>. This allows the system to store gravatars locally. This works best for WordPress websites that have a lot of comments with <a href=\"\/ph\/tutorials\/what-is-gravatar\">gravatars<\/a>.<\/li>\n\n\n\n<li><strong>Gravatar Cache Cron &ndash; ON<\/strong>. If you have enabled the previous option, you should also enable this one to refresh the gravatar cache via a cron job.<\/li>\n\n\n\n<li><strong>Gravatar Cache TTL<\/strong>. Defines how long gravatars are cached for. The default value should work fine. However, you can customize this value as long as it is above 3600 seconds.<\/li>\n<\/ul><p><strong>Tuning<\/strong><\/p><p>All the settings in this section work to exclude specific elements, such as CSS, JS, and URLs, from being minified and combined.<\/p><p>Generally, you don&rsquo;t have to tweak these settings as much unless you find an unusual file in your source code after minifying or combining CSS\/JS. In such cases, you can list the files inside the provided fields accordingly.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-tuning.png\"><img decoding=\"async\" width=\"1024\" height=\"430\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-tuning-1024x430.png\" alt=\"LSCache for WordPress' tuning settings.\" class=\"wp-image-42622\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-tuning-1024x430.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-tuning-300x126.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-tuning-150x63.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-tuning-768x322.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-tuning-1536x645.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-tuning.png 1684w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Once you have finished configuring the settings, be sure to hit <strong>Save Changes<\/strong>.<\/p><h3 class=\"wp-block-heading\">4. Set Up the QUIC.cloud CDN (Optional)<\/h3><p>QUIC.cloud is a content delivery network by LiteSpeed Technologies that offers dynamic caching. This CDN uses servers all across the world to cache website content. Whenever a visitor makes a request, the server will fetch the resources from the nearest server location.<\/p><p>Pairing QUIC.cloud CDN with cache features from LiteSpeed Cache can greatly improve your page speed. This section will explain the steps of activating this content delivery network.<\/p><p>To do so, start by setting up <a href=\"\/ph\/tutorials\/how-to-setup-cloudflare-for-wordpress\">Cloudflare for WordPress<\/a>. Doing this ensures that all of your website content is cached optimally &ndash; the QUIC.cloud CDN will cache all dynamic pages, while the Cloudflare CDN will handle the static content.<\/p><p>Once you have Cloudflare set up on your server, the next step is to get your domain key. Go to the <strong>General<\/strong> page, and click on the <strong>Request Domain Key<\/strong> button.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-domain-key-1.png\"><img decoding=\"async\" width=\"1024\" height=\"61\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-domain-key-1-1024x61.png\" alt=\"Adding the domain key on the LSCache plugin.\" class=\"wp-image-42623\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-1-1024x61.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-1-300x18.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-1-150x9.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-1-768x46.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-domain-key-1.png 1180w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Then, wait for the system to process your request.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-api-key.png\"><img decoding=\"async\" width=\"1024\" height=\"96\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-api-key-1024x96.png\" alt=\"The domain key being processed by WordPress.\" class=\"wp-image-42624\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-1024x96.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-300x28.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-150x14.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-768x72.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-1536x144.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key.png 1648w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Refresh your WordPress admin page. Once the process is complete, the system will autofill the domain key. Next, click on the <strong>Link to QUIC.cloud<\/strong> button.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-api-key-link.png\"><img decoding=\"async\" width=\"1024\" height=\"41\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-api-key-link-1024x41.png\" alt=\"Clicking the link to the QUIC.cloud setup.\" class=\"wp-image-42625\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-link-1024x41.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-link-300x12.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-link-150x6.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-link-768x31.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-link-1536x62.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-api-key-link.png 1663w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>This will take you to the registration page. Continue by filling in all the information accordingly.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-quic.png\"><img decoding=\"async\" width=\"1024\" height=\"381\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-quic-1024x381.png\" alt=\"Setting up QUIC.cloud on LSCache for WordPress.\" class=\"wp-image-42626\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-300x112.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-150x56.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-768x286.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-1536x572.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>If you don&rsquo;t have a QUIC.cloud account already, sign up for a new one. Once done, the system will send a validation email to the registered address. Open the email and click on the attached link.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/quic-cloud-setup.png\"><img decoding=\"async\" width=\"478\" height=\"276\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/quic-cloud-setup.png\" alt=\"The message indicating that the QUIC.cloud setup was successful.\" class=\"wp-image-42627\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/quic-cloud-setup.png 478w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/quic-cloud-setup-300x173.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/quic-cloud-setup-150x87.png 150w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/a><\/figure><\/div><p>If you see the message above, you have successfully paired your WordPress website with the QUIC.cloud CDN. Now, click on the <strong>My Dashboard<\/strong> button to go back.<\/p><p>Although you have completed the registration process, you still need to properly configure your DNS settings. To do so, navigate to the <strong>CDN<\/strong> section and look for the <strong>QUIC.cloud<\/strong> option.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-quic-on.png\"><img decoding=\"async\" width=\"1024\" height=\"105\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-quic-on-1024x105.png\" alt=\"Turning on QUIC.cloud CDN on LSCache for WordPress.\" class=\"wp-image-42628\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-on-1024x105.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-on-300x31.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-on-150x15.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-on-768x79.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-quic-on.png 1241w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Switch it <strong>On<\/strong> to enable the QUIC.cloud CDN API functionality.<\/p><p>Next, configure QUIC.cloud with the Cloudflare details. Before doing so, access your <a href=\"https:\/\/dash.cloudflare.com\/profile\/api-tokens\" target=\"_blank\" rel=\"noopener\">Cloudflare dashboard<\/a> to get the Global API Key.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/cloudflare-templates.png\"><img decoding=\"async\" width=\"1024\" height=\"666\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/cloudflare-templates-1024x666.png\" alt=\"Selecting the WordPress Cloudflare template.\" class=\"wp-image-42629\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/cloudflare-templates.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/cloudflare-templates-300x195.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/cloudflare-templates-150x98.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/cloudflare-templates-768x500.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Now that you have the information, simply fill in the fields accordingly.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-cloudflare-setup.png\"><img decoding=\"async\" width=\"1024\" height=\"338\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-cloudflare-setup-1024x338.png\" alt=\"Setting up Cloudflare on LSCache for WordPress.\" class=\"wp-image-42630\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cloudflare-setup.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cloudflare-setup-300x99.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cloudflare-setup-150x50.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cloudflare-setup-768x254.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-cloudflare-setup-1536x507.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Once done, click <strong>Save Changes<\/strong>.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p> If Cloudflare is connected to the LS Cache plugin, you can use the &ldquo;Flush Cache&rdquo; button on hPanel to purge Litespeed, Cloudflare and Sever side cache in just one click. <\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\">5. Fetch Static Content via a CDN (Optional)<\/h3><p>Fetching static content via a CDN can lower your network latency. This is because the CDN will replicate the most requested resources across global caching servers. Whenever visitors access those resources, the closest server will deliver them.<\/p><p>To fetch static content from a CDN you will need to <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583405-how-to-create-and-delete-subdomains-in-hpanel\" target=\"_blank\" rel=\"noopener\">create a subdomain<\/a> that delivers the resources, for example &ndash; <strong>cdn.your-website.com<\/strong>. This subdomain needs to be in the same folder as your primary domain.<\/p><p>Additionally, it is paramount to ensure the CDN subdomain is working well. Otherwise, your static resources won&rsquo;t be loaded and it might break your website.<\/p><p>If you&rsquo;re sure the subdomain is working properly, enable the <strong>Use CDN Mapping<\/strong> option for the newly created subdomain:<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-use-cdn-mapping.png\"><img decoding=\"async\" width=\"1024\" height=\"559\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-use-cdn-mapping-1024x559.png\" alt=\"Setting up CDN mapping for the newly created subdomain.\" class=\"wp-image-42631\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-use-cdn-mapping-1024x559.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-use-cdn-mapping-300x164.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-use-cdn-mapping-150x82.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-use-cdn-mapping-768x419.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-use-cdn-mapping-1536x838.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-use-cdn-mapping.png 1862w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Now that we&rsquo;ve finished configuring the LiteSpeed Cache plugin, let&rsquo;s take a look at the following graphs:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/LiteSpeed-Blog-eCommerce-and-Portfolio.jpg\"><img decoding=\"async\" width=\"1000\" height=\"989\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/11\/LiteSpeed-Blog-eCommerce-and-Portfolio.jpg\" alt=\"LiteSpeed - Blog, eCommerce, and Portfolio\" class=\"wp-image-58454\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Blog-eCommerce-and-Portfolio.jpg 1000w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Blog-eCommerce-and-Portfolio-300x297.jpg 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Blog-eCommerce-and-Portfolio-150x148.jpg 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2021\/11\/LiteSpeed-Blog-eCommerce-and-Portfolio-768x760.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure><\/div><p>They show how the three tested websites performed before and after applying the appropriate LiteSpeed configuration settings.<\/p><p>Before applying image and page optimization, the portfolio website scored just 45 points in the PageSpeed mobile category. After it was optimized, the score soared to 100. Meanwhile, the same changes improved the eCommerce store&rsquo;s score from 53 points to 99.<\/p><p>In terms of <a href=\"\/ph\/tutorials\/gtmetrix-for-testing-websites-speed\">GTMetrix performance<\/a>, the blogging site&rsquo;s score increased from 84 to 100.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> All of the websites &ndash; the blog, eCommerce store, and portfolio site &ndash; demonstrated better results after turning on LSCache for WordPress and applying image and page optimization.<\/p><\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-else-can-litespeed-do\">What Else Can LiteSpeed Do?<\/h2><p>After you have configured all the LiteSpeed Cache for WordPress plugin settings, the system should function properly. Hence, there will be little further cache management required. However, LiteSpeed offers more functionalities to tweak as you need.<\/p><p>The following sections will talk about LiteSpeed&rsquo;s database optimization, its crawler, and the toolbox to help you further improve your website performance,<\/p><h3 class=\"wp-block-heading\">Database Optimization<\/h3><p>The <strong>Database<\/strong> section offers features to help you execute various tasks in your WordPress database more conveniently. This includes clearing old post revisions and trashing pingbacks with a single click.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/database-optimization.png\"><img decoding=\"async\" width=\"1024\" height=\"272\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/database-optimization-1024x272.png\" alt=\"LSCache's database section.\" class=\"wp-image-42633\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/database-optimization-1024x272.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/database-optimization-300x80.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/database-optimization-150x40.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/database-optimization-768x204.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/database-optimization-1536x408.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/database-optimization.png 1719w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Moreover, <strong>DB Optimization Settings<\/strong> control the number of post revisions to clear and automate the process.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-database-optimization.png\"><img decoding=\"async\" width=\"1024\" height=\"276\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-database-optimization-1024x276.png\" alt=\"LSCache's database optimization feature.\" class=\"wp-image-42634\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-database-optimization-1024x276.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-database-optimization-300x81.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-database-optimization-150x40.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-database-optimization-768x207.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-database-optimization-1536x414.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-database-optimization.png 1751w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>For example, if you want to save two older revisions for each post, change the <strong>Revision Max Number<\/strong> value to <strong>2<\/strong>. Meanwhile, to keep old post revisions for a specific period, change <strong>Revisions Max Age<\/strong>.<\/p><h3 class=\"wp-block-heading\">Crawler<\/h3><p>The LSCache plugin includes a <strong>crawler<\/strong> functionality that browses your website&rsquo;s backend, searching for expired pages and refreshing them in the process. It prevents visitors from seeing any uncached page.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-crawler.png\"><img decoding=\"async\" width=\"1024\" height=\"422\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-crawler-1024x422.png\" alt=\"LSCache's crawler cron job setup page.\" class=\"wp-image-42635\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-crawler-1024x422.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-crawler-300x124.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-crawler-150x62.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-crawler-768x317.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-crawler-1536x633.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-crawler.png 1730w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>This function is disabled by default and needs to be enabled from the server-side &ndash; you will have to consult your server admin or hosting provider. This is because activating the crawler functionality without sufficient server resources might negatively impact your site&rsquo;s performance.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> The crawler functionality is only available on Hostinger cloud hosting plans.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\">Toolbox<\/h3><p>Use the LiteSpeed Cache <strong>Toolbox<\/strong> section to configure your cache settings manually. It provides more specific caching functions, from purging 403 error pages to editing the path to the <strong>.htaccess<\/strong> file.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-toolbox-1.png\"><img decoding=\"async\" width=\"1024\" height=\"277\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/lscache-toolbox-1-1024x277.png\" alt=\"LSCache's Toolbox.\" class=\"wp-image-42637\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-toolbox-1-1024x277.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-toolbox-1-300x81.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-toolbox-1-150x41.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-toolbox-1-768x208.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-toolbox-1-1536x415.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2022\/01\/lscache-toolbox-1.png 1731w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Although the <strong>Purge<\/strong> tab contains straightforward features, other tabs like <strong>Edit .htaccess<\/strong> and<br><strong>Heartbeat<\/strong> are meant for advanced users. Thus, it&rsquo;s best to leave the default values for these settings or consult your web host before making any changes.<\/p><p>For more details, let&rsquo;s expand on the functionality of each section:<\/p><ul class=\"wp-block-list\">\n<li><strong>Purge<\/strong>. This tab lists different content types for you to purge selectively. The functions are especially helpful for making changes to a file that is being cached. This way, only the selected files are purged, not affecting the rest of your content.<\/li>\n\n\n\n<li><strong>Import\/export<\/strong>. Includes tools to export or import various LiteSpeed configurations. These tools come in handy if you are experimenting with your site and want to restore the previous configurations later. Additionally, you can also transfer your site configuration to a local file and use it on another website.<\/li>\n\n\n\n<li><strong>View .htaccess<\/strong>. Use available tools within this tab to directly edit your <strong>.htaccess<\/strong> file without having to configure an FTP or SSH client. Keep in mind that changing your .htaccess file might break your site. If you&rsquo;re unsure, always consult your web host before making any changes.<\/li>\n\n\n\n<li><strong>Heartbeat<\/strong>. <a href=\"\/ph\/tutorials\/wordpress-heartbeat\">WordPress Heartbeat API<\/a> enables your browser to communicate with the servers using <a href=\"\/ph\/tutorials\/what-is-ajax\">AJAX<\/a> calls. This functionality allows you to manage server load. However, be careful when adjusting WordPress heartbeat intervals as it can take up a high amount of CPU power.<\/li>\n\n\n\n<li><strong>Report<\/strong>. In case you experience problems with the LiteSpeed Cache plugin, you can send reports by pressing the <strong>Send to LiteSpeed<\/strong> button in this tab. The system will then send a copy of your environment report to the LiteSpeed team.<\/li>\n\n\n\n<li><strong>Debug Settings<\/strong>. If you want to disable the LiteSpeed Cache plugin to debug your website, use the tools available in this tab accordingly.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Web caching is one of the most effective and efficient ways to improve a website&rsquo;s performance. When implemented correctly, it can speed up its loading time and reduce server load. The simplest way to set up web caching is by installing a caching plugin.<\/p><p>LiteSpeed Cache is one of the best WordPress plugins with advanced caching techniques. Moreover, when paired with the LiteSpeed server, its server-level page caching can effectively improve performance.<\/p><p>In this article, we have explained the best settings to configure for LiteSpeed Cache for WordPress. Although applying the best settings will give you optimized performance, there is no need to tweak the default settings if you don&rsquo;t feel comfortable doing it.<\/p><p>We hope this article has helped you configure LiteSpeed Cache for WordPress and get the most out of it. Should you have any questions, don&rsquo;t hesitate to drop them in the comment section below.<\/p><h2 class=\"wp-block-heading\" id=\"h-litespeed-cache-faq\">LiteSpeed Cache FAQ <\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1669210353584\"><h3 class=\"schema-faq-question\">Should I Use LiteSpeed Cache?<\/h3> <p class=\"schema-faq-answer\">LiteSpeed Cache is a wonderful choice for a cache plugin if you are looking for a plugin with extensive settings, great reviews, and fast server-level caching.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1669210369516\"><h3 class=\"schema-faq-question\">Is LiteSpeed Cache Free?<\/h3> <p class=\"schema-faq-answer\">Yes, LiteSpeed Cache is free to use, but you only benefit from the caching if your website&rsquo;s servers also use LiteSpeed.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Website speed optimization should be a top priority for every website owner as it directly impacts WordPress SEO. Additionally, the longer a website loads, the higher its bounce rate. This can prevent you from generating conversions and driving traffic to your site. With the right tools and configurations, caching your website can significantly boost its [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ph\/tutorials\/litespeed-website-optimization-tool\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":180,"featured_media":126729,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Optimizing WordPress With LiteSpeed Cache Plugin","rank_math_description":"Speed matters - that's why we include the LiteSpeed Cache plugin in all our plans. Learn how to fully set it up in this article.","rank_math_focus_keyword":"litespeed cache","footnotes":""},"categories":[22632],"tags":[],"class_list":["post-25399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/wordpress-litespeed-website-optimization-tool","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/litespeed-cache","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/litespeed-cache-plugin","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/litespeed-cache","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/litespeed-website-optimization-tool\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/litespeed-website-optimization-tool\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/litespeed-website-optimization-tool\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/entorno-staging-wordpress-2","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-usar-sftp-15","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/entorno-staging-wordpress-2","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/litespeed-website-optimization-tool\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/wordpress-litespeed-website-optimization-tool","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/wordpress-litespeed-website-optimization-tool","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/wordpress-litespeed-website-optimization-tool","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/25399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/users\/180"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/comments?post=25399"}],"version-history":[{"count":53,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/25399\/revisions"}],"predecessor-version":[{"id":126725,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/25399\/revisions\/126725"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/media\/126729"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/media?parent=25399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/categories?post=25399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/tags?post=25399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}