The Litespeed plugin for WordPress will work far better than Super Cache, Total Cache or other cache plugins can, as it runs on the server level rather than just the WordPress level.


Step 1 - Log in to WordPress and add a new plugin


bbac11bdab6a92096eea6704bcd6d02b0c92064a?t=f6156354aa10eaf9413f4c830395f944



Step 2 - Find the plugin and click Install Now


81c9b5d61612353973432ced7d24c9adeb7f0cb2?t=b2c13c5af47ee30004a4454cdb61c43c



Click Activate to enable Litespeed


87b9e9ccf3ebbfc139b8d50071fbcdd2a2aba73b?t=fc7462ffe3e338912f76bc5b25fa6bbf


Step 3 - Next, you need to log in to cPanel and edit your .htaccess file (click here for a guide) to remove the default config.


One: Delete this text

## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##

RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule min/\w+\.(css|js) - [E=cache-control:no-vary]
### marker CACHE RESOURCE start ###
RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
### marker CACHE RESOURCE end ###
### marker FAVICON start ###
RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
### marker FAVICON end ###

## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END LSCACHE
# BEGIN NON_LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END NON_LSCACHE



Two: Add this text to the top

# BEGIN LSCACHE

CacheEnable public /
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
RewriteCond %{REQUEST_URI} !^/(wp-admin|wp-login.php|wp-cron.php)
RewriteRule .* - [E=Cache-Control:max-age=120]

# END NON_LSCACHE



The page should look like this.

# BEGIN LSCACHE

CacheEnable public /
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
RewriteCond %{REQUEST_URI} !^/(wp-admin|wp-login.php|wp-cron.php)
RewriteRule .* - [E=Cache-Control:max-age=120]

# END NON_LSCACHE
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Hit Save. Litespeed Cache is now installed and Working :)

  Print