Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:cache:lscjoomla [2018/03/09 15:35] Eric Leu [How to Disable] |
litespeed_wiki:cache:lscjoomla [2020/10/10 14:02] (current) Lisa Clarke Fixed redirect |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LiteSpeed Cache for Joomla ====== | + | ~~REDIRECT>https://docs.litespeedtech.com/lscache/lscjoomla/~~ |
- | + | ||
- | The LiteSpeed Cache plugin is a high-performance cache component for Joomla sites running on a LiteSpeed web server. | + | |
- | + | ||
- | The LiteSpeed Cache extension is released under the GNU General Public Licence (GPL). | + | |
- | + | ||
- | See [[https://www.litespeedtech.com/products/cache-plugins|our website]] for more information. | + | |
- | + | ||
- | ===== Prerequisites ===== | + | |
- | + | ||
- | This version of LiteSpeed Cache requires Joomla 3.x or later and LiteSpeed Web Server 5.2.3 or later. | + | |
- | + | ||
- | Before installing and activating **lscjoomla**, Deactivate any other full-page cache modules (such as "System - Page Cache"). | + | |
- | + | ||
- | ===== Installing ===== | + | |
- | ===Step 1. Cache lookup=== | + | |
- | Modify the ''.htaccess'' file in the Joomla site directory, adding the following directives: | + | |
- | + | ||
- | <code><IfModule LiteSpeed> | + | |
- | CacheLookup on | + | |
- | </IfModule> | + | |
- | </code> | + | |
- | + | ||
- | If your Joomla site has a separate mobile view, please add the following directives: | + | |
- | <code> | + | |
- | <IfModule LiteSpeed> | + | |
- | RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile] | + | |
- | </IfModule> | + | |
- | </code> | + | |
- | + | ||
- | + | ||
- | ===Step 2. Install plugin=== | + | |
- | Administrator menu: **Extensions -> Manage -> Install** | + | |
- | {{:litespeed_wiki:cache:joo-1.png?800|}} | + | |
- | + | ||
- | Download [[https://github.com/litespeedtech/lscache-joomla|com_lscache]] and [[https://github.com/litespeedtech/lscache-joomla|lscache_plugin]], install the zip file by **Upload Package File**. | + | |
- | {{:litespeed_wiki:cache:joo-2.png?800|}} | + | |
- | + | ||
- | ===Step 3. Enable the plugin=== | + | |
- | Enable the LiteSpeed Cache Plugin by using the Administrator menu: **Extensions > Plugins**. | + | |
- | {{:litespeed_wiki:cache:joo-3.png?800|}} | + | |
- | + | ||
- | If you want to set more, please visit Administrator menu: **Components > LitespeedCache**. | + | |
- | {{:litespeed_wiki:cache:joo-4.png?800|}} | + | |
- | + | ||
- | ====How to Verify==== | + | |
- | Use browser developer tool, check response header and you should see **X-litespeed-Cache-cache: hit** in it. | + | |
- | {{:litespeed_wiki:cache:joo-5.png?800|}} | + | |
- | + | ||
- | + | ||
- | ====How to Disable==== | + | |
- | Simply disabled from Administrator menu: Extensions > Plugins. | + | |
- | {{:litespeed_wiki:cache:joo-6.png?800|}} | + | |
- | + | ||
- | + |