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.
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.
- 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.)
It is possible to use multiple optimization plugins at once. Please see these instructions to learn how to do so safely.
- Download the LSCWP plugin from our WordPress Plugin Directory page.
- Log in to your WordPress Dashboard, navigate to Plugins > Add New and click on Upload Plugin.
- Select the LSCWP zip file and click Install Now. Activate the plugin.
- Navigate to LiteSpeed Cache > Cache > Cache and set Enable Cache to
You may also install the plugin directly from the Plugins > Add New screen. Replace the first three steps above with:
- Search for
LiteSpeed Cachein the search box. Our plugin should be the first search result to come up.
- Press Install Now. Activate the plugin.
To verify that a page is being served from LSCWP, execute the following steps:
- Open the developer tools on a non-logged-in browser and navigate to your site. Open the Network tab.
- Refresh the page.
- 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
- In a different, logged-in browser, in your WordPress Dashboard, navigate to LiteSpeed Cache > Toolbox > Purge and click the Purge All button.
- 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_
- Reload the page a second time and you should see
X-LiteSpeed-Cache: hitin the response header. This means the page is being served from the cache and LSCWP is configured correctly.
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.