# Installation¶

There are two ways to use LiteSpeed Cache for WordPress (LSCWP): with a LiteSpeed server, and without one.

## Without a LiteSpeed Server¶

Anyone can use the LSCWP plugin, even those who are using Apache, nginx, or some other non-LiteSpeed server. However, none of the plugin's caching functionality will be available to you. You are free to use all of the optimization features, but caching does not work without a LiteSpeed server.

• Simply install and activate the plugin through the WordPress Admin interface.
• Navigate to LiteSpeed Cache > Page Optimization
• Have fun playing with the options! Screen-by-screen instructions are here, if you need them.

Tip

If you are not currently running a LiteSpeed Web Server with LSCache enabled, but you would like to use the caching features of the WordPress plugin, please contact your hosting provider. Ask them to switch you to LiteSpeed Web Server! If that is not an option, check out QUIC.cloud CDN, which gives you access to LSCWP caching, no matter what server your site uses on the backend.

## With a LiteSpeed Server¶

Using OpenLiteSpeed, commercial LiteSpeed products, LiteSpeed-powered hosting, or QUIC.cloud CDN allows you to use ALL of LSCWP's features.

### Pre-Installation Requirements¶

• Take care of the server-level prerequisites as described here.
• Disable other full-page cache plugins if used (such as WP Super Cache, W3 Total Cache, WP Rocket, WP Fastest Cache etc.)

Tip

It is possible to use multiple optimization plugins at once. Please see these instructions to learn how to do so safely.

### Installation¶

3. Select the LSCWP zip file and click Install Now. Activate the plugin.
4. Navigate to LiteSpeed Cache > Cache > Cache and set Enable Cache to ON.

You may also install the plugin directly from the Plugins > Add New screen. Replace the first three steps above with:

• Search for LiteSpeed Cache in the search box. Our plugin should be the first search result to come up.
• Press Install Now. Activate the plugin.

### Testing¶

To verify that a page is being served from LSCWP, execute the following steps:

1. Open the developer tools on a non-logged-in browser and navigate to your site. Open the Network tab.
2. Refresh the page.
3. Click the first resource (this should be an HTML file and the resource's headers should appear as in the image below). For example, if your page is http://example.com/wordpress/, your first resource should either be something like example.com/wordpress/ or wordpress/.
4. In a different, logged-in browser, in your WordPress Dashboard, navigate to LiteSpeed Cache > Toolbox > Purge and click the Purge All button.
5. Reload the page in the first (non-logged-in) browser and select the same resource again. If you see headings similar to the following, this means the page had not yet been cached, but that LiteSpeed has now cached it for future use:
X-LiteSpeed-Cache: miss
X-LiteSpeed-Cache-Control:public,max-age=1800
X-LiteSpeed-Tag:B1_F,B1_

6. Reload the page a second time and you should see X-LiteSpeed-Cache: hit in the response header. This means the page is being served from the cache and LSCWP is configured correctly.

Note

If your first refresh after purging returns X-LiteSpeed-Cache: hit in the response header, this may be because someone else visited the page after you purged but before you refreshed it yourself. Try again from step 4.

Last update: April 17, 2020