How to enable LiteSpeed cache for your domain

By default LiteSpeed cache is disabled and will need to be enabled manually. There are two ways to enable LiteSpeed cache for your domain.

1.) Install LiteSpeed Cache WordPress plugin. This is the recommended and easiest way to enable LSCache. Simply search for LiteSpeed cache in your plugins page in WordPress admin. Once installed just activate the plugin.

2.) Enable LSCache in your .htaccess file. You can create the .htaccess file in the folder where you have WordPress installed. The following will need to be added to the top of the .htaccess file.


<IfModule LiteSpeed>
CacheEnable public
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteCond %{REQUEST_URI} !login|admin|register|post|cron
RewriteCond %{QUERY_STRING} !nocache
RewriteRule .* - [E=Cache-Control:max-age=300]

Replace with the domain name that you want to enable LSCache. If you want to enable LSCache for multiple domains, separate them with the pipe symbol (|). For example:

RewriteCond %{HTTP_HOST} ^|| [NC]

  • litespeed, cache, lscache, htaccess, wordpress
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Clearing 3rd party plugin cache

If you have Wordpress, you most likely are having a caching system on it to help it speed up, but...

LiteSpeed Cache for Wordpress

LiteSpeed Cache for WordPress is a web server level caching solution designed to hyper-charge...

Using 3rd party cache plugins with LiteSpeed cache

Not all cache plugins pair well with LiteSpeed cache. LSCache stores copies of full pages and we...