Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
litespeed_wiki:cache:lscwp:information:configuration [2017/11/27 21:16] Lisa Clarke |
litespeed_wiki:cache:lscwp:information:configuration [2017/11/27 21:16] (current) Lisa Clarke |
||
---|---|---|---|
Line 3: | Line 3: | ||
For the most detailed installation, server-level (or virtual-host-level) configuration, and testing steps, please see [[litespeed_wiki:cache:lscwp:installation|the Installation Guide]]. | For the most detailed installation, server-level (or virtual-host-level) configuration, and testing steps, please see [[litespeed_wiki:cache:lscwp:installation|the Installation Guide]]. | ||
- | ===== Instructions for LiteSpeed Web Server Enterprise ===== | ||
- | Make sure that the server license has the LSCache module enabled. A [[https://www.litespeedtech.com/products/litespeed-web-server/download/get-a-trial-license|2-CPU trial license with LSCache module]] is available for free for 15 days. | ||
- | |||
- | The server must be configured to have caching enabled. If you are the server admin, [[litespeed_wiki:cache:common_installation#web_server_configuration|click here]]. Otherwise, request that the server admin configure the cache root for the server. | ||
- | |||
- | In the ''.htaccess'' file for the WordPress installation, add the following: | ||
- | |||
- | <code> | ||
- | <IfModule LiteSpeed> | ||
- | CacheLookup public on | ||
- | </IfModule> | ||
- | </code> | ||
- | |||
- | ===== Instructions for OpenLiteSpeed ===== | ||
- | |||
- | This integration utilizes OLS's cache module. | ||
- | |||
- | If it is a fresh OLS installation, the easiest way to integrate is to use [[http://open.litespeedtech.com/mediawiki/index.php/Help:1-Click_Install|ols1clk]]. If using an existing WordPress installation, use the ''--wordpresspath'' parameter. | ||
- | |||
- | Otherwise, if OLS and WordPress are already installed, please follow the instructions [[http://open.litespeedtech.com/mediawiki/index.php/Help:How_To_Set_Up_LSCache_For_WordPress|here]]. | ||
- | |||
- | ===== How to Test the Plugin ===== | ||
- | |||
- | The LiteSpeed Cache Plugin utilizes LiteSpeed specific response headers. | ||
- | |||
- | Visiting a page for the first time should result in a ''X-LiteSpeed-Cache-Control:miss'' or ''X-LiteSpeed-Cache-Control:no-cache'' response header for the page. | ||
- | |||
- | Subsequent requests should have the ''X-LiteSpeed-Cache-Control:hit'' response header until the page is updated, expired, or purged. | ||
- | |||
- | Please visit [[litespeed_wiki:cache:lscwp:installation#testing|this page]] for more information. | ||
- | |||
- | ===== The Cache Tag Prefix Setting ===== | ||
- | The value of this wordpress cache tag prefix is displayed on this page (**LiteSpeed Cache > Information > Configuration**). If you want to change the value to avoid conflicts with multiple sites, please add the following line to you ''wp-config.php'' file: | ||
- | |||
- | define( "LSWCP_TAG_PREFIX", "YourUniqueStringHere" ) ; |