This article describes how to enable caching for Joomla on a Turbo server.
There are two ways to enable caching for Joomla on a Turbo server:
To enable caching for Joomla on a Turbo server using a plugin, follow these steps:
To verify the plugin is installed, on the top menu bar, click LiteSpeed Cache Plugin should appear in the list of installed plugins with a green checkmark next to it.
To verify that caching is working correctly on your account, you can examine the raw HTTP headers sent between the browser and web server. (To do this, use a browser plugin that displays the raw headers such as Live HTTP headers for Mozilla Firefox, or the Developer Tools feature in Google Chrome.) When content is served from the cache, the server adds the following line to the HTTP response header:
X-LiteSpeed-Cache: hit
If you do not see this line in the HTTP response header from the server, then the content was not served from the cache.
To enable caching for Joomla on a Turbo server manually, follow these steps:
<IfModule LiteSpeed> CacheEnable public RewriteEngine On RewriteCond %{REQUEST_METHOD} ^HEAD|GET$ RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteCond %{HTTP_COOKIE} !loginuser RewriteCond %{ORG_REQ_URI} !^/index.php$ RewriteCond %{ORG_REQ_URI} !administrator RewriteCond %{ORG_REQ_URI} (\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] RewriteCond %{QUERY_STRING} !nocache RewriteRule .* - [E=Cache-Control:max-age=300] </IfModule>
RewriteCond %{ORG_REQ_URI} !secretadmin
Save your changes to the .htaccess file. Caching is now enabled.
To verify that caching is working correctly on your account, you can examine the raw HTTP headers sent between the browser and web server. (To do this, use a browser plugin that displays the raw headers such as Live HTTP headers for Mozilla Firefox, or the Developer Tools feature in Google Chrome.) When content is served from the cache, the server adds the following line to the HTTP response header:
X-LiteSpeed-Cache: hit
If you do not see this line in the HTTP response header from the server, then the content was not served from the cache.
For detailed information about LiteSpeed caching, please visit http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:litespeed:cache.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.