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
Next revision Both sides next revision
litespeed_wiki:cache:no-plugin-setup-guidline [2018/07/03 16:11]
Lisa Clarke [Rewrite Examples for applications]
litespeed_wiki:cache:no-plugin-setup-guidline [2018/08/07 19:26]
Lisa Clarke [LiteSpeed Cache (LSCache) Introduction] Fixed formatting
Line 5: Line 5:
 LSCache'​s features are very similar to those in Apache mod_cache, but implemented in a more efficient way. LiteSpeed cache works like Varnish. It is an output cache for dynamic contents, so the usage is not limited to PHP pages. Unlike Varnish, LiteSpeed cache is built into LiteSpeed'​s web server, thus eliminating one layer of reverse proxy. This translates into higher efficieny for static contents. The uniqueness of LiteSpeed cache is that it uses rewrite rules (either in configuration files or .htaccess) to control its behavior for maximum flexibility. ​ LSCache'​s features are very similar to those in Apache mod_cache, but implemented in a more efficient way. LiteSpeed cache works like Varnish. It is an output cache for dynamic contents, so the usage is not limited to PHP pages. Unlike Varnish, LiteSpeed cache is built into LiteSpeed'​s web server, thus eliminating one layer of reverse proxy. This translates into higher efficieny for static contents. The uniqueness of LiteSpeed cache is that it uses rewrite rules (either in configuration files or .htaccess) to control its behavior for maximum flexibility. ​
  
-If there is a LiteSpeed cache plugin available for your web applications (WordPress, WooCommerce,​ Magento, Xenforo), you should follow ​**[[litespeed_wiki:​cache#​litespeed_cache_plugins_by_application|the corresponding section]]** to set up your cache. In these cases, following this wiki is not recommended as it was written for more general non-application-specific caching. As a result, it is only applicable when a LiteSpeed cache plugin for your application is not available or you have very customized code base application.+If there is a LiteSpeed cache plugin available for your web applications (WordPress, WooCommerce,​ Magento, Xenforo), you should follow [[litespeed_wiki:​cache#​litespeed_cache_plugins_by_application|the corresponding section]] to set up your cache. In these cases, following this wiki is not recommended as it was written for more general non-application-specific caching. As a result, it is only applicable when a LiteSpeed cache plugin for your application is not available or you have very customized code base application.
  
 A general way to enable LiteSpeed Cache through rewrite rules is to designate a signature token (such as a cookie) in any page, in most cases it will tell LSWS that cache can be enabled and that the TTL(Time To Live) of the cache freshness will remain acceptable. Generating cookies usually requires application code modification. Please refer to [[https://​www.litespeedtech.com/​support/​forum/​showthread.php?​t=4679| this thread on our forum]] for examples. It is worth noting that the cache function **SHOULD ONLY** be used for pages that are **supposed to be cached or cache friendly**. Abuse use of this feature would result in performance degradation and/or other unexpected behaviors. A general way to enable LiteSpeed Cache through rewrite rules is to designate a signature token (such as a cookie) in any page, in most cases it will tell LSWS that cache can be enabled and that the TTL(Time To Live) of the cache freshness will remain acceptable. Generating cookies usually requires application code modification. Please refer to [[https://​www.litespeedtech.com/​support/​forum/​showthread.php?​t=4679| this thread on our forum]] for examples. It is worth noting that the cache function **SHOULD ONLY** be used for pages that are **supposed to be cached or cache friendly**. Abuse use of this feature would result in performance degradation and/or other unexpected behaviors.
Line 49: Line 49:
  
 For different hosting environments,​ the steps to set up server level cache root are different. Please choose your hosting environment: ​ For different hosting environments,​ the steps to set up server level cache root are different. Please choose your hosting environment: ​
-  ​* **[[litespeed_wiki:​cache:​common_installation:​cpanel-shared|cPanel/​WHM]]** +  * [[litespeed_wiki:​cache:​common_installation:​cpanel-shared|cPanel/​WHM]] 
-  ​* **[[litespeed_wiki:​cache:​common_installation:​plesk-shared|Plesk]]** +  * [[litespeed_wiki:​cache:​common_installation:​plesk-shared|Plesk]] 
-  ​* **[[litespeed_wiki:​cache:​common_installation:​apache-config-shared|Apache Config (No Control Panel)]]** +  * [[litespeed_wiki:​cache:​common_installation:​apache-config-shared|Apache Config (No Control Panel)]] 
-  ​* **[[litespeed_wiki:​cache:​common_installation:​litespeed-shared|LiteSpeed Native]]**+  * [[litespeed_wiki:​cache:​common_installation:​litespeed-shared|LiteSpeed Native]]
  
-For Advanced Cache Configuration info, **[[litespeed_wiki:​cache:​common_installation:​advanced|look here]]**.+For Advanced Cache Configuration info, [[litespeed_wiki:​cache:​common_installation:​advanced|look here]].
 ===== Set cache policy at LSWS Server level ===== ===== Set cache policy at LSWS Server level =====
  
  • Admin
  • Last modified: 2020/09/23 20:42
  • by Lisa Clarke