{"id":9780,"date":"2018-06-12T06:00:18","date_gmt":"2018-06-12T10:00:18","guid":{"rendered":"https:\/\/blog.litespeedtech.com\/?p=9780"},"modified":"2018-06-12T06:00:18","modified_gmt":"2018-06-12T10:00:18","slug":"beginners-guide-to-litespeed-cache-for-joomla","status":"publish","type":"post","link":"https:\/\/lswp.store\/index.php\/2018\/06\/12\/beginners-guide-to-litespeed-cache-for-joomla\/","title":{"rendered":"JT: The Beginner&#8217;s Guide to LSCache for Joomla"},"content":{"rendered":"<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/jt01.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-9810\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/jt01.png\" alt=\"Joomla Tips: Beginner's Guide to LiteSpeed Cache for Joomla\" width=\"960\" height=\"480\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/jt01.png 960w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/jt01-300x150.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/jt01-768x384.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/jt01-600x300.png 600w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>Welcome to the first installment of LiteSpeed\u2019s <a href=\"http:\/\/blog.litespeedtech.com\/tag\/joomla-tips\">Joomla Tips<\/a>!<br \/>\nToday we are sharing a <strong>Beginner\u2019s Guide to LiteSpeed Cache for Joomla<\/strong>!<\/p>\n<p>If your Joomla site is powered by <a href=\"https:\/\/www.litespeedtech.com\/products\/litespeed-web-server\">LiteSpeed Web Server<\/a>, you have a very powerful new tool at your disposal: the <strong>LiteSpeed Cache plugin for Joomla<\/strong>. LSCache is a high-performance, open source, user friendly cache plugin, and you don\u2019t have to be a site optimization expert to use it.<\/p>\n<h2>How it Works<\/h2>\n<p>Joomla sites consist of dynamic pages that are built with PHP. The pages of a Joomla site don\u2019t exist anywhere in the file system; they are constructed on demand through PHP, and then served to the visitor as HTML. This can be a resource-heavy process, and the <a href=\"https:\/\/www.litespeedtech.com\/support\/wiki\/doku.php\/litespeed_wiki:cache:lscjoomla\">LiteSpeed Cache for Joomla<\/a> plugin is one way of dealing with it.<\/p>\n<p>When Joomla dynamically generates the static HTML page, LSCache communicates with LiteSpeed Web Server to store a copy of it. Once the static copy exists in the cache, then <em>that copy<\/em> can be served to future visitors, eliminating the expensive Joomla PHP process for all but the first visitor to request the page.<\/p>\n<p>When your site is cached, it requires much less involvement from the Joomla backend, which translates into a faster site and a better experience for your site\u2019s visitors.<\/p>\n<h2>Enable the Plugin<\/h2>\n<p>We\u2019re going to assume you (or your hosting provider) have already installed the plugin and configured LSCache at the server or virtual host level. If you need instructions for that, you can <a href=\"https:\/\/www.litespeedtech.com\/support\/wiki\/doku.php\/litespeed_wiki:cache:lscjoomla#installing\">see our wiki<\/a>. Don\u2019t forget to deactivate all other full-page cache plugins, including \u201cSystem &#8211; Page Cache\u201d and \u201cJotCache,\u201d as well.<\/p>\n<p><strong>NOTE<\/strong>: You can still use other types of cache (like object cache), but only one page cache can be used at a time, so you\u2019ll need to disable the others, if you want to use LSCache.<\/p>\n<p>From your Joomla Administrator menu, navigate to <strong>Extensions &gt; Plugins<\/strong>. If you have a lot of plugins listed, type <code>LiteSpeed<\/code> into the search box to bring up the LiteSpeed Cache Plugin.<\/p>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-10.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9784\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-10.png\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: Enable the Plugin\" width=\"1199\" height=\"388\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-10.png 1199w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-10-300x97.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-10-1024x331.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-10-768x249.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-10-600x194.png 600w\" sizes=\"(max-width: 1199px) 100vw, 1199px\" \/><\/a><\/p>\n<p>Look for the green check mark next to the plugin name. This indicates that the plugin is installed and enabled. If you see a red X instead, click the red X to enable the plugin. Once you\u2019ve done that, the green check mark should appear, and you are good to go.<\/p>\n<h2>Configure the Plugin<\/h2>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9786\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null.jpeg\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: Cat in a Box\" width=\"1000\" height=\"667\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null.jpeg 1000w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-300x200.jpeg 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-768x512.jpeg 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-600x400.jpeg 600w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>LiteSpeed Cache works with most Joomla setups right out of the box. \u201cOut of the box,\u201d of course, is a figure of speech. Software rarely comes in a box anymore, which is great for the environment, but maybe not so great for your cat, who just <em>loves<\/em> cardboard boxes&#8230;<\/p>\n<p>The point, of course, is that LSCache for Joomla usually <em>just works<\/em>. It can often be enabled and ignored. There\u2019s usually no need to play around with the settings, unless your site has atypical needs.<\/p>\n<p>Just the same, let\u2019s go over some of those settings, so that you can use them if you want to.<\/p>\n<p>Navigate to <strong>System &gt; Global Configuration &gt; LiteSpeed Cache<\/strong> to access the plugin\u2019s settings. The first tab is for <strong>Basic<\/strong> settings.<\/p>\n<h3>The Basic Tab<\/h3>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9788\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11.png\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: The Basic Tab\" width=\"1895\" height=\"793\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11.png 1895w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11-300x126.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11-1024x429.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11-768x321.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11-1536x643.png 1536w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11-1320x552.png 1320w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-11-600x251.png 600w\" sizes=\"(max-width: 1895px) 100vw, 1895px\" \/><\/a><\/p>\n<p>Here is where you enable or disable the caching functionality of the plugin (not to be confused with enabling the plugin itself, which we did earlier), and set a few parameters for the way it should behave.<\/p>\n<h4>Enable LiteSpeed Cache<\/h4>\n<p>By default, caching is already enabled once you install and enable the plugin. If you need to stop caching your site for whatever reason, you can press <code>Disable<\/code> to turn it off. Simply press <code>Enable<\/code> to get it back up and running again.<\/p>\n<h4>Public Cache TTL<\/h4>\n<p>\u201cTTL\u201d stands for Time to Live, and it refers to the length of time a web page is valid within the cache. The default is <code>2000<\/code> minutes, but if you have a site that updates frequently, you might want to make that number smaller. Similarly, if you have a site that is fairly static and rarely changes, you can make that number much larger.<\/p>\n<p>Note: LSCache\u2019s \u201csmart purge\u201d technology allows you to confidently set a high TTL, knowing that if content changes during that time, the cache will automatically be purged for any pages that are relevant to that change. We\u2019ll explore that concept in more detail in a future Joomla Tips article.<\/p>\n<h4>Purge All on Plugin Update<\/h4>\n<p>If you are concerned that plugin updates are going to change some of the pages of your site (thereby causing the cached copies to become outdated), then you should enable this setting. It\u2019s disabled by default, because usually plugin updates have minimal effect (if any) on the displayed content.<\/p>\n<h4>Purge All on Language Update<\/h4>\n<p>This is similar to the previous setting, except it refers to language updates, and it is enabled by default.<\/p>\n<h4>Logging Level<\/h4>\n<p>You can leave logging off in most cases. It\u2019s handy to turn on logging when you are trying to diagnose a problem. If you\u2019ve contacted our support team for help with an issue, chances are we\u2019ll ask you to turn on logging and we\u2019ll also tell you which level would be appropriate.<\/p>\n<p>Any time you turn on logging, it should be temporary, as logs can eat up disk space pretty quickly.<\/p>\n<h3>All Other Tabs<\/h3>\n<p>The other tabs may be ignored, unless you are feeling experimental, or you are using your Joomla installation for ecommerce. We\u2019ll discuss them in detail in future issues of Joomla Tips. For now, here\u2019s a short overview explaining the purpose of each tab.<\/p>\n<h4>Exclude Rules<\/h4>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9790\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12.png\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: Exclude Rules\" width=\"1894\" height=\"1022\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12.png 1894w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12-300x162.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12-1024x553.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12-768x414.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12-1536x829.png 1536w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12-1320x712.png 1320w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-12-600x324.png 600w\" sizes=\"(max-width: 1894px) 100vw, 1894px\" \/><\/a><\/p>\n<p>This tab allows you to specify Joomla components, menus, and URLs that should not be cached.<\/p>\n<h4>Advanced<\/h4>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9792\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13.png\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: Advanced Tab\" width=\"1901\" height=\"983\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13.png 1901w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13-300x155.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13-1024x530.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13-768x397.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13-1536x794.png 1536w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13-1320x683.png 1320w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-13-600x310.png 600w\" sizes=\"(max-width: 1901px) 100vw, 1901px\" \/><\/a><\/p>\n<p>You can set up ESI here (a <em>must<\/em> if you are trying to cache an ecommerce site), give yourself the ability to clear the cache from a secure link outside of Admin, set a different TTL for the homepage, and set up LSCache to save separate views for mobile and desktop.<\/p>\n<h4>Logged-in Users<\/h4>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9794\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14.png\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: Logged in Users Tab\" width=\"1899\" height=\"1193\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14.png 1899w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14-300x188.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14-1024x643.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14-768x482.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14-1536x965.png 1536w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14-1320x829.png 1320w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-14-600x377.png 600w\" sizes=\"(max-width: 1899px) 100vw, 1899px\" \/><\/a><\/p>\n<p>These settings pertain to caching for users who are logged in. By default caching for logged-in users is disabled.<\/p>\n<h4>Recache<\/h4>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9798\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16.png\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: Recache Tab\" width=\"1898\" height=\"819\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16.png 1898w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16-300x129.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16-1024x442.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16-768x331.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16-1536x663.png 1536w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16-1320x570.png 1320w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-16-600x259.png 600w\" sizes=\"(max-width: 1898px) 100vw, 1898px\" \/><\/a><\/p>\n<p>Usually, when a page is purged from the cache, it remains uncached until a visitor comes along and requests the page. With Auto Recache enabled, LiteSpeed will automatically re-cache those purged pages, which means that your site\u2019s visitors will have a lower chance of ever encountering uncached content.<\/p>\n<h4>Permissions<\/h4>\n<p>This is your standard Joomla permissions page, and every setting defaults to <code>Inherited<\/code>.<\/p>\n<h4>Support<\/h4>\n<p>You can refer to this page if you need support. It includes some handy links.<\/p>\n<h2>Manual Purge<\/h2>\n<p>In a perfect world, you could enable caching and never look at the plugin again. In the <em>real<\/em> world, though, things happen, and you might need to manually purge the cache now and then. Here\u2019s how:<\/p>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9802\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-18.png\" alt=\"Beginner's Guide to LiteSpeed Cache for Joomla: Manual Purge\" width=\"1197\" height=\"514\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-18.png 1197w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-18-300x129.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-18-1024x440.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-18-768x330.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/null-18-600x258.png 600w\" sizes=\"(max-width: 1197px) 100vw, 1197px\" \/><\/a><\/p>\n<p>Navigate to <strong>Components &gt; LiteSpeed Cache<\/strong>, and press the green <strong>Purge All LiteSpeed Cache<\/strong> button. All of the entries currently stored in the cache will be cleared.<\/p>\n<p>If you want to re-populate the cache after that, you can do so via the <strong>Rebuild All LiteSpeed Cache<\/strong> button.<\/p>\n<p>And that is all you need to know to use LSCache for Joomla successfully as a beginner! There may come a time when you would like to explore ESI, or Logged-in cache (both very powerful features, especially for ecommerce). We\u2019ll be talking all about those options in a future Joomla Tips, so stay tuned!<\/p>\n<p>&#8212;<\/p>\n<p><em><strong>Disclaimer<\/strong>: The information contained in this post is accurate for LSCJoomla v1.2.0. If you are using a newer version of the plugin, some details may have changed. Please<a href=\"https:\/\/www.litespeedtech.com\/support\/wiki\/doku.php\/litespeed_wiki:cache:lscjoomla\"> refer to our wiki<\/a> for the latest!<\/em><\/p>\n<p>Have some of your own ideas for future <a href=\"http:\/\/blog.litespeedtech.com\/tag\/joomla-tips\">Joomla Tips<\/a> topics? Leave us a comment!<\/p>\n<p>While you\u2019re waiting for the next installment, here are a few things you can do:<\/p>\n<ul>\n<li>Subscribe to the <a href=\"http:\/\/blog.litespeedtech.com\/tag\/joomla-tips\/feed\/\">Joomla Tips RSS feed<\/a><\/li>\n<li>Download <a href=\"https:\/\/www.litespeedtech.com\/products\/cache-plugins\/joomla-acceleration\/download\">LiteSpeed Cache for Joomla extension<\/a><\/li>\n<li>Learn more about the plugin <a href=\"https:\/\/www.litespeedtech.com\/support\/wiki\/doku.php\/litespeed_wiki:cache:lscjoomla\">on our website<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>LSCache is a high-performance, open source, user friendly cache plugin, and you don\u2019t have to be a site optimization expert to use it.<\/p>\n","protected":false},"author":1,"featured_media":9810,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28],"tags":[46,150,151],"class_list":["post-9780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cache","tag-beginners-guide","tag-joomla","tag-joomla-tips"],"jetpack_featured_media_url":"https:\/\/lswp.store\/wp-content\/uploads\/2018\/06\/jt01.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/9780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/comments?post=9780"}],"version-history":[{"count":0,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/9780\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media\/9810"}],"wp:attachment":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media?parent=9780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/categories?post=9780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/tags?post=9780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}