This is an old revision of the document!

LSCWP Information: Configuration

For the most detailed installation, server-level (or virtual-host-level) configuration, and testing steps, please see the Installation Guide.

Make sure that the server license has the LSCache module enabled. A 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, 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:

<IfModule LiteSpeed>
   CacheLookup public on

This integration utilizes OLS's cache module.

If it is a fresh OLS installation, the easiest way to integrate is to use ols1clk. If using an existing WordPress installation, use the --wordpresspath parameter.

Otherwise, if OLS and WordPress are already installed, please follow the instructions here.

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 this page for more information.

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" ) ;
  • Admin
  • Last modified: 2017/11/27 21:16
  • by Lisa Clarke