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/21 13:29] Jackson Zhang [LiteSpeed Cache for Joomla] |
litespeed_wiki:cache:lscjoomla [2020/10/10 14:02] (current) Lisa Clarke Fixed redirect |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LiteSpeed Cache for Joomla 3.x or later ====== | + | ~~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. | + | |
- | + | ||
- | ===== Features ===== | + | |
- | + | ||
- | LiteSpeed LSCache for Joomla is a high performance, low cost, user friendly cache plugin. It will tremendously speed up your site, and reduce server load with minimal management efforts. | + | |
- | + | ||
- | For most Joomla sites, the default settings work well. Very few option need to be changed. | + | |
- | + | ||
- | For advanced Joomla sites such as E-Commerce sites, the advanced ESI feature and cache options for logged-in users will help run your complex business site like a static file site. It will tremendously improve your customer experience. | + | |
- | + | ||
- | The smart auto-purge feature will minimize your management needs. No more worrying about cache sync problems. LSCache will detect that you changed an article, you changed a menu setting, or you changed a module setting. Then, it will automatically purge related pages. So, you can set a longer cache expiration time to improve visitor experience, confident that the cache will be purged when the relevant settings change. | + | |
- | + | ||
- | Some components and some pages may not work well with cache. We can set flexible exclude rules for those components and pages. We have both a simple easy way and a powerful complex way (supporting regular expressions). | + | |
- | + | ||
- | ===== 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" "JotCache" etc). | + | |
- | + | ||
- | ===== 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]], and go to **Upload Package File** to install the zip 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 configure the plugin further, 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|}} | + | |
- | + | ||
- | + |