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.
Hit Save. Litespeed Cache is now installed and Working :)
Step 1 - Log in to WordPress and add a new plugin
Step 2 - Find the plugin and click Install Now
Click Activate to enable Litespeed
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 :)