How do I enable caching for Joomla? Print

  • hosting, joomla, caching, litespeed cache
  • 0

Before proceeding please ensure that you are using Joomla 3.x or later and all existing Joomla caching modules are disabled.

Begin by adding the following code to the .htaccess file in your Joomla site's directory:

<IfModule LiteSpeed>
  CacheLookup on
</IfModule>

We recommend adding this code to the top of your .htaccess file.

If your Joomla site has a separate mobile view, also add the following code directly below the lines above:

<IfModule LiteSpeed>
  RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile]
</IfModule>

Next, download the latest LiteSpeed Cache package from https://github.com/litespeedtech/lscache-joomla/tree/master/package.

Log into your Joomla administrative area and click on Extensions -> Manage -> Install from the main menu and upload the zip file you just downloaded.

That’s it! Your Joomla articles will now be cached and load much faster!


Was this answer helpful?

« Back