Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:lscoc [2018/10/05 16:19]
Lisa Clarke [Does LiteSpeed Cache for OpenCart work with OpenLiteSpeed?] Fixed wrong answer
litespeed_wiki:cache:lscoc [2020/08/21 20:26] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== LiteSpeed Cache for OpenCart====== +~~REDIRECT>​https://docs.litespeedtech.com/​lscache/​lscoc/overview/~~
- +
-**NOTE: This plugin is only for OpenCart v2.3 or v3.0.** +
- +
-Unlike other cache plugins for OpenCart, LiteSpeed Cache supports caching for logged-in users, and is able to cache shopping carts with items in them. +
- +
-Visit [[https://www.litespeedtech.com/​products/​cache-plugins|our website]] for more information about all of our cache plugins. +
- +
-See also: [[https://​github.com/​litespeedtech/lscache-opencart|LSCache for OpenCart on Github]] +
- +
-=====Download===== +
-Visit [[https://github.com/litespeedtech/​lscache-opencart/​tree/​master/​package|our GitHub repository]],​ choose the version you want, and download the LiteSpeed Cache Plugin to your local computer. +
- +
-=====Install Plugin===== +
- +
-Disable page caching in any other cache plugins you may have running, such as NitroCache. (You only need to disable the page cache feature. Other optimization functions like JS/CSS combine/​minify may remain enabled.) +
- +
-Visit ''<​nowiki>​http://​example.com/​admin</​nowiki>''​ (where ''​example.com/''​ is your OpenCart site's domain) and navigate to **Extensions > Installer**. Upload the downloaded zip file.  +
- +
-{{:​litespeed_wiki:​cache:​oc-3.png?​800|}} +
- +
-Once uploaded, navigate to **Extensions > Choose Modules from Filter > LiteSpeed Cache** and install the plugin. +
- +
-{{:​litespeed_wiki:​cache:​oc-4.png?​800|}} +
- +
-=====Configuration===== +
-This step is optional. Once the plugin is activated, your cache is already up and running, but on the configuration screen, you can customize a few settings. +
- +
-Visit ''<​nowiki>​http://​example.com/​index.php?​route=extension/​module/​lscache</​nowiki>''​. +
- +
-{{:​litespeed_wiki:​cache:​oc-8.png?​800|}} +
- +
-====Purge All Cache==== +
-This button clears the entire LiteSpeed cache for this virtual host. This includes any other web apps using LSCache (WordPress, XenForo, etc.) on this vhost. +
- +
-====Rebuild All LSCache==== +
-This will generate cache files for this site. +
- +
-=====How to Verify===== +
-Enable browser developer tool and visit **Network > Doc > Headers > Response Headers**. You should see ''​X-LiteSpeed-Cache:​ +
- ​hit''​ +
-{{:​litespeed_wiki:​cache:​oc-7.png?​800|}} +
- +
-===== FAQ ===== +
-==== Is the LiteSpeed Cache Extension for OpenCart free? ==== +
-Yes, LSCOC will always be free and open source. That said, a LiteSpeed server is required, and there are fees associated with some LiteSpeed server editions. +
- +
-==== What server software is required for this plugin? ===== +
-A LiteSpeed server is required in order to use this plugin. +
- +
-LiteSpeed Web Server Enterprise with: +
- +
-  * LSCache Module (v5.2.2+) +
-  * LiteSpeed WebADC (v2.1+) +
-  * Any single server or cluster including a LiteSpeed server will work. +
- +
-==== What is the difference between the LSCache Module for LSWS (requires a license) and the LSCache Extension for OpenCart (free)? ===== +
-The LSCache Module is built into your licensed copy of LiteSpeed Web Server. When it comes to caching dynamic content, the LSCache Module does all of the work. +
- +
-The LSCache Extension for OpenCart is simply an interface. It allows OpenCart to instruct the server Module on what to cache, how long to cache it, and when to purge. And it allows the site owner to manage and configure the Module. Without the Module, the Extension could not function. +
- +
-A licensed LSCache Module is required in order to use the free LSCache OpenCart Extension. +
- +
-==== Does this plugin work in a clustered environment?​ ===== +
-The cache entries are stored at the LiteSpeed server level. The simplest solution is to use LiteSpeed WebADC, as the cache entries will be stored at that level. If using another load balancer, the cache entries will only be stored at the backend nodes, not at the load balancer. The purges will also not be synchronized across the nodes, so this is not recommended. If a customized solution is required, please contact LiteSpeed Technologies at info@litespeedtech.com +
- +
-NOTICE: The rewrite rules created by this plugin must be copied to the Load Balancer. +
- +
-==== Does LiteSpeed Cache for OpenCart work with OpenLiteSpeed?​ ===== +
-Yes, but it works slightly differently than Enterprise. OpenLiteSpeed does not support ESI, and so Shopping Cart module and Wishlist module ESI requests are replaced with AJAX. No other ESI modules may be used with OpenLiteSpeed. +
-==== Does LiteSpeed Cache for OpenCart have a crawler? ===== +
-Yes, the "​Rebuild All LiteSpeed Cache" button in the LiteSpeed Cache Admin triggers a crawler, which reads your sitemap file and refreshes those pages that have expired. +
- +
-==== How can I install LiteSpeed Cache for OpenCart? ===== +
-LiteSpeed Cache for OpenCart works right out of the box with default settings that are appropriate for most sites. Please refer to the steps above.+
  • Admin
  • Last modified: 2018/10/05 16:19
  • by Lisa Clarke