{"id":6521,"date":"2021-08-09T11:31:37","date_gmt":"2021-08-09T11:31:37","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=6521"},"modified":"2024-10-16T09:22:27","modified_gmt":"2024-10-16T09:22:27","slug":"litespeed-cache-settings-in-wordpress","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/litespeed-cache-settings-in-wordpress\/","title":{"rendered":"How to Configure the LiteSpeed Cache Settings in WordPress"},"content":{"rendered":"<p>At a quick look, you may find all the options overwhelming, so in this tutorial, we&#8217;ll cover the basic LiteSpeed Cache Settings configuration. At the end of this tutorial, you will find a reference to a more comprehensive and advanced tutorial that will help you get the most of the WordPress Cache plugin.<\/p>\n<p>By default, all the LiteSpeed Cache settings are configured to work out of the box with the majority of WordPress-based websites and to offer optimal performance. However, the plugin provides a wide range of settings that are customizable and it will help your site to deliver the best speed performance.<\/p>\n<p>So now that you&#8217;ve installed the LiteSpeed Cache plugin, let&#8217;s dive in and check on a few settings for your site.<\/p>\n<p><strong>1)<\/strong> We&#8217;ll assume that you are still logged into your WordPress admin panel (wp-admin).<\/p>\n<p><strong>2)<\/strong> In the left sidebar, hover on <strong><span class=\"UI\">LiteSpeed Cache<\/span><\/strong>, and then click <strong><span class=\"UI\">Cache<\/span><\/strong>.<\/p>\n<figure id=\"attachment_4235\" aria-describedby=\"caption-attachment-4235\" style=\"width: 300px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4235\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/LiteSpeed-Cache-Cache-300x251.png\" alt=\"\" width=\"300\" height=\"251\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/LiteSpeed-Cache-Cache-300x251.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/LiteSpeed-Cache-Cache-50x42.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/LiteSpeed-Cache-Cache-60x50.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/LiteSpeed-Cache-Cache-100x84.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/01\/LiteSpeed-Cache-Cache.png 642w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-4235\" class=\"wp-caption-text\">LiteSpeed Cache &gt; Cache<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The <span class=\"UI\">LiteSpeed Cache Settings<\/span> page will appear. We&#8217;ll explore some of the most important options in each tab.<\/p>\n<h3 id=\"cache-tab\">Cache Tab<\/h3>\n<p id=\"enable-cache\"><strong>Enable Cache &#8211; <\/strong><em>ON. <\/em>When enabled, the cache plugin will cache your website&#8217;s pages. Disabling will stop any caching from occurring and purge the cache of all WordPress cache entries.<\/p>\n<p><strong>Cache Logged-in Users<\/strong> &#8211; <em>OFF. <\/em>This setting allows content to be cached for logged-in users. Pages will be stored in a private cache by IP\/session ID.<\/p>\n<p><strong>Cache Commenters &#8211;<\/strong> <em>OFF<\/em><\/p>\n<p><strong>Cache REST API<\/strong> \u2013 <em>ON. <\/em>This feature won\u2019t apply to most of you. Leave it ON, but turn it OFF if any functions break.<\/p>\n<p><strong>Cache Login Page &#8211;<\/strong> <em>ON<\/em><\/p>\n<p><strong>Cache favicon.ico &#8211; <\/strong><em>ON<\/em><strong><br \/>\n<\/strong><\/p>\n<p><strong>Cache PHP Resources<\/strong> &#8211; <em>ON<\/em>. This feature helps with poorly-coded themes\/plugins.<\/p>\n<p><strong>Cache Mobile<\/strong> &#8211; <em>OFF<\/em> for most websites! Don\u2019t turn it ON unless you have AMP or mobile-specific design\/content. Sites with responsive design don\u2019t need this enabled.<\/p>\n<p><strong>List of Mobile User Agents<\/strong> \u2013 leave it as it is. It\u2019s only used if \u201cCache Mobile\u201d is ON.<\/p>\n<p><strong>Private Cached URIs &#8211;<\/strong> this feature is for pages that need to be cached separately for each visitor.<strong><br \/>\n<\/strong><\/p>\n<p><strong>Force Cache URIs<\/strong> &#8211; pages listed here will be cached regardless of no-cacheable settings.<\/p>\n<p><strong>Drop Query String<\/strong> \u2013 incredibly useful to avoid unnecessary page-caching for some query strings. Other query strings don\u2019t cause content changes (e.g. FB\/Google trackers, affiliate cookies) and are only used for tracking, so these should be listed:<\/p>\n<pre>fbclid\r\ngclid\r\nutm*\r\n_ga<\/pre>\n<p class=\"p1\"><b>Exciting News: Introducing Our fastest <\/b><a href=\"https:\/\/chemicloud.com\/managed-wordpress-hosting?utm_source=blog&amp;utm_medium=article#60b65e4e63b58\"><b>WordPress Hosting<\/b><\/a><b> stack <\/b><span class=\"s1\">\ud83d\ude80<\/span><b> Ready for speed? Try it for just $1!<\/b><\/p>\n<h3 id=\"ttl-tab\">TTL Tab<\/h3>\n<p>Safer to leave these as they are set by default.<\/p>\n<p id=\"default-public-cache-ttl\">Default Public Cache TTL \u2013 don&#8217;t modify.<br \/>\nDefault Private Cache TTL \u2013 don&#8217;t modify.<br \/>\nDefault Front Page TTL \u2013 don&#8217;t modify.<br \/>\nDefault Feed TTL \u2013 don&#8217;t modify.<br \/>\nDefault REST TTL \u2013 don&#8217;t modify.<br \/>\nDefault HTTP STATUS 404 Page TTL \u2013 don&#8217;t modify.<br \/>\nDefault HTTP STATUS 403 Page TTL \u2013 don&#8217;t modify.<br \/>\nDefault HTTP STATUS 500 Page TTL \u2013 don&#8217;t modify.<\/p>\n<h3 id=\"purge-tab\">Purge Tab<\/h3>\n<p><strong>Purge All on Upgrade<\/strong> <em>ON &#8211; <\/em>This option selects whether to purge all pages when any plugin, theme, or WordPress core is updated.<\/p>\n<h3 id=\"excludes-tab\">Excludes Tab<\/h3>\n<p>This option comes in handy if you have any pages that you don&#8217;t want to be cached at all. This section will allow you to exclude specific parts of your site from being cached.<\/p>\n<h3 id=\"object-tab\">Object Tab<\/h3>\n<p><strong>Object Cache<\/strong> <em>OFF &#8211; <\/em>Object caching refers to the storage of database results and it helps the system to not process the same queries over and over again. This caching system is particularly useful for websites with heavy databases.<\/p>\n<p>Object Cache is disabled by default. Learn <a href=\"https:\/\/chemicloud.com\/kb\/article\/redis-object-cache-in-wordpress\/\" target=\"_blank\" rel=\"noopener\">How To Enable Redis On Your Website<\/a><\/p>\n<h3 id=\"browser-tab\">Browser Tab<\/h3>\n<p>Static content such as images, video, or fonts is not included in any full-page cache. And yet, this content may be requested from the server repeatedly. Take, for instance, your site&#8217;s logo. That image is likely to be displayed on every page that the user visits, which means the server has to repeatedly transfer that same image to that same user. This is where browser caching comes in handy.<\/p>\n<p>At ChemiCloud, browser caching is enabled at the server level, so you don&#8217;t have to enable it through the LiteSpeed Cache for WordPress plugin&#8217;s settings.<\/p>\n<h3 id=\"advanced-tab\">Advanced Tab<\/h3>\n<p id=\"instant-click\"><strong>Instant Click <\/strong><em>Off &#8211;<\/em> It takes time for a user to click a link on your website. First, they hover over it, then they depress the mouse button, and then, only after the button is released, is the link considered &#8220;clicked&#8221; and the new page loaded. With Instant Click enabled, the page begins to load as soon as the user hovers over the link. By the time the mouse button is released, enough of the page has been loaded that the display can seem almost instant.<em><br \/>\n<\/em><\/p>\n<p>If you make any changes to the settings, click <strong><span class=\"button\">Save Changes<\/span><\/strong> to save the new configuration.<\/p>\n<p>That&#8217;s a wrap! Now you know how to easily configure the LiteSpeed Cache Settings in WordPress.<\/p>\n<p>\u25b6\ufe0f Please join us in the next tutorial, where we will walk you through how to configure the <a href=\"https:\/\/chemicloud.com\/kb\/article\/litespeed-cache-image-optimization-settings\/\">LiteSpeed Cache Image Optimization Settings<\/a> in WordPress<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At a quick look, you may find all the options overwhelming, so in this tutorial, we&#8217;ll cover the basic LiteSpeed Cache Settings configuration. At the end of this tutorial, you will find a reference to a more comprehensive and advanced tutorial that will help you get the most of the&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[191],"ht-kb-tag":[],"class_list":["post-6521","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-website-speed"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=6521"}],"version-history":[{"count":8,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6521\/revisions"}],"predecessor-version":[{"id":8474,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6521\/revisions\/8474"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=6521"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=6521"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=6521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}