there is a simple and practical guide about Litespeed Cache WordPress Plugin to Improve Performance, In a previous post on our blog, we discussed the idea of using LiteSpeed features page caching to improve performance WordPress. caching drastically improve the performance of your WordPress installation.

now You were able to go from just over 200 requests / sec 1800 requests / sec with only a simple .htaccess lines. LiteSpeed team has yet to work on making it easier to achieve this with the introduction of their LiteSpeed Cache plugin for WordPress.

With this plugin you have more control over caching policies and can utilize .htaccess mod_rewrite rules simplified. I’ll quickly go through how you install and configure WordPress plugin LiteSpeed cache.

The initial step of course is to install WordPress the which you can do through cPanel using Softaculous. There is no need to work with the cPanel file manager or an application like FileZilla. Just a few clicks and your WordPress is installed. Which now leads us to the point of this post is just how to install the LiteSpeed Cache plugin.

Step 1
The LiteSpeed cache plugin requires that you’re not using the plain permalinks option. You can change this by going to your WordPress admin interface and then ‘Settings => Permalinks’. In most cases WordPress blogs are setup to Utilize day and name but you can set them to any of the options and save the changes

step 2
You are now ready to install the cache LiteSpeed. You can do this by entering your WordPress admin interface and then ‘Plugins’ and click ‘Add New’. On this page Litespeed entered into the search box and see the supplement appeared LiteSpeed Cache

Install Litespeed Cache

Then click the option to install now roomates will install the plugin.

step 3
Now that you have installed the plugin to be activated. You can do this in the WordPress administration interface by clicking the ‘plugins’ and then ‘plugin’. On this page you will see a list of plugins including LiteSpeed Cache Plugin. Click Enable to activate the plugin.

Activate Litespeed Cache Plugin

Step 4
You will now see a large selection of settings for LiteSpeed Cache plugin that will click to allow you to start configuring the plugin. On this page you will be able to set the TTL cache, TTL front page, separate mobile phone cache and various other options. For most users the settings should be fine, and only the changes can be saved.
Step 5 (No longer required)

This setting is no longer required the plugin does it automatically for you.

Now you need to let us know your web server uses LiteSpeed cache. This is done by modifying the .htaccess file and adding the following to the previous one:

1
2
3
<IfModule LiteSpeed>
CacheLookup public on
</IfModule>

The easiest way to do this if you are not familiar with the use of FTP or SSH is to use cPanel file manager. Once you are logged in cPanel, will go to the “File Manager” and then go to your public_html folder. You will see that the .htaccess file does not exist, because by default cPanel hidden files hidden. You can change this by visiting your profile settings file and select ‘Show hidden files’ and click Save

cPanel Filemanager Show Hidden Files

You can now select your .htaccess file and select to edit it which will open the file editor for it.  Then all you need to do is add the LiteSpeed cache code to the top of the file.  After this your file might look something like this:

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<IfModule LiteSpeed>
CacheLookup public on
</IfModule>
<IfModule LiteSpeed>
RewriteEngine on
###LSCACHE START RESOURCE###
RewriteRule wp-content/.*/(loader|fonts)\.php - [E=cache-control:max-age=3600]
###LSCACHE END RESOURCE###
###LSCACHE START FAVICON###
RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
###LSCACHE END FAVICON###
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

now completed the installation and setup of LiteSpeed Cache on Hawk host and it’s time to take advantage of the increased speed of your website.

source: blog.hawkhost.com/2016/09/22/improve-performance-with-litespeed-page-cache-wordpress-plugin/

Filed under: tutorial

Like this post? Subscribe to my RSS feed and get loads more!