PrackHost : Hosting Premium Web LiteSpeed

LiteSpeed Cache: Plugin of faster cache for WordPress

LiteSpeed Cache for WordPress

In this tutorial we will show to you how to install and to form plugin LiteSpeed Cache for WordPress. This plugin will do that your webpage loaded much more fast in our servers formed with LiteSpeed.

All the tests that we have realised, give to plugin LiteSpeed Cache for WordPress as winner against others plugins more known: WP Supercache, WP Rocket, WP Fastest Cache and Total W3 Break.

ATTENTION: If your Web server is not LiteSpeed nor you are client ours, this plugin will not have all the qualified functionalities.

In PrackHost all the hosting shared (Joomla, WordPress, PrestaShop and Moodle) use LiteSpeed as Web server.

1. Verification to see if plugin already is installed.

In the WordPress sites of our clients it can be that the Plugin LiteSpeed Cache either is installed, or because the client has installed it by his account or because we have installed it we previously.

In order to know if plugin already is installed in your Web, it sees the administration of WordPress and reviews that the option €œLiteSpeed Cache€ in the bar of options of WordPress is not available.

To verify if plugin LiteSpeed WordPress is installed

2. Installation of plugin LiteSpeed Cache for WordPress

If you do not have installed plugin, possibly it is because you already have formed another one plugin of Cache different from this one.

It reviews if you have some other type of cache installed in your WordPress (WP Supercache, Total W3 Break, WP Rocket, etc). and deactivate it, you do not eliminate it!

(EYE: If for whatever reason you want to activate it later than this form again not the possible configurations will be lost that you have given of discharge).

Now we are going to come to install plugin proper. For it, we will go to the option of the menu €œPlugin€ €“ €œTo add new€ €“ and in looking for plugins we will write €œLiteSpeed Cache€ €“ €œTo install now€

Installation of the Plugin LiteSpeed Cache for WordPress

3. Configuration of the Plugin

The parameters of plugin of cache are very easy to form. We showed you in the following captures how you must define them.

IMPORTANT: The configurations of optimization of plugin vary following the subject of WordPress and plugins that you use. For this reason, there is no a standard configuration of plugin. You must test of test and error until you are able to qualify the greater number of possible optimizations without affecting mainly to the yield and to the visualization of your webpage.

4. To manage €“ Management of Cache of LiteSpeed

It is first of the options of plugin. In her you will be able to make a complete purge of the pages and frisked archives as well as to optimize and to clean the data base of WordPress. Also you can verify the connection with the CDN of Cloudflare.

 

Management of breaks of Litespeed

 

4.1 Purgar

From this section you can €œbleed€ all the contents generated already by plugin.

Among them they are: the page of cover, all the pages, the minificados pages of error, archives css and js or to drain the whole cache.

Also you can bleed categories of individual form. To see the following capture:

To bleed

 

4,2 basic Optimizer of data

From you can here optimize the tables of the data bases. To eliminate rough drafts used in the entrances or that are in the wastebasket.

Also all the commentaries of Spam of the site and the archives css and js combined by plugin.

 

Basic optimizer of Data

 

4,3 CDN

The CDN eyelash is used to communicate to you with the API of desarrolllo of the CDN that you are using.

From you will be able here to verify if you are connected correctly.

Also you have the option to directly bleed the cache of the CDN.

 

CDN

 

5. Adjustments

The section of adjustments is the main section of plugin and where you will be able to optimize all the site with the different options that plugin incorporates.

By defect this section does not show all the options.

In order to be able to see them you will have to puncture in the option €œAdvanced View€.

 

Adjustments

 

5,1 General Options

In the general eyelash you will be able to activate or to deactivate the cache and will define the time that your contents will remain frisked. We recommend to use an ample time to optimize to the maximum the speed of load of your site.

The options that come by defect are the recommended options. Although you can increase them if you want.

For example, the values 604800 seconds you can change them by 1 year (31536000 seconds). This will cause that your site practically is always frisked. He is not recommendable to put more of a year.

 

General option of plugin Litespeed Cache

 

5,2 Cache

Adjustments to control better the cache and what parts of the site you want to frisk.

If you have a site with an independent movable version you will have to activate the option €œMovable Cache€. But surely in your case and of 95% of the users estaráis using a design responsive reason why it is not necessary to qualify this option.

We recommend to use the options as they appear in the following image:

 

It breaks

 

 

5.3 Purgar

When you realise a change in your website, the cache must be refreshed so that it picks up the changes in the contents, new images, etc that you have introduced. From this section you will control that the cache self-priming when realising any change in your Web.

The recommended option is to bleed everything when updating since sometimes we will incorporate external archives or documents that can influence in other pages and need re-to be frisked.

Also you will be able to program a purge to one hour certain.

 

Adjustments of Purge

 

 

5.4 Excluir

Rules of exclusions. You can exclude from the cache certain landlords between which they are:

  • To force or to exclude Chains (/directorio/mipagina? aa=bb)
  • Chains of consultation
  • Categories
  • Labels
  • Cookies
  • User agents
  • Profiles

 

To exclude

 

 

5.5 Optimizar

Each subject of WordPress and each plugin requires that you prove several combinations in the optimizations until securing the maximum optimization of your page but that it is not affected the visualization nor it breaks the design.

In this section you will have to be proving by means of test and error the options that you can activate for your site.

This way, you will have to be activating options, to clean the cache of plugin and to visit your Web in another navigator in incognito way without being logueado as administrator to verify that any element of your Web is not had broken: sliders, images, sections, etc.

You can qualify the rules css critics that will help you to improve the results of tests of speed as Pingdom, GTMetrix or Google PageSpeed.

If you are going to use this option, you will have to activate the called parameter €œTo load CSS Asynchronously€ and €œGenerate Critial to you CSS in background€.

A standard optimization or at least that serves to you as starting point could be the following one. S.A. to activate it visits your Web without being logueado and some element you see displaced you will have to be annulling it adjustments:

 

To optimize

 

5.6 Ajustar

You can form so that the optimized archives that are combined load before other archives .css or .js

Also you can exclude archives css and js if notes that the design is not the correct one.

Loads the sources of Google of asynchronous way. This improvement the load of the outsourcing of Google.

To eliminate emojis of WordPress.

 

To fit

 

5,7 Means

You can improve the load of the images qualifying some options of this section:

  • Lazy Load: In order to only load the images when they enter the window of visualization of the visitor. Not before. This option can give some problems, if you qualify it you will have to assure to you that the images load correctly.
  • Replacement of images WEBP. This option is very interesting because plugin of cache is going to regenerate all the images that you have in WordPress and it is going them to turn to format .webp that is a format that reduces the size of a .jpg image in a 30% without losing quality.
  • To only ask for WEBP. If you want that all the images of your site are in format .webp.

In point 7 of this manual we will speak more on the optimization of images.

 

Means

 

5,8 CDN

You can activate your CDN from this section. Including Cloudflare.

 

Adjustments of CDN

 

5,9 ESI

The ESI adjustments are used for annulling the cache in certain parts of your page that are dynamic and that they change frequently.

For example if you have widget typical of the last messages of the forum, you can activate ESI from and going here to the option of Widgets de WordPress and annulling the one that you want not to frisk through a new option that will appear you in widget.

 

ESI

 

 

5.10 Advanced

These advanced adjustments more allow you to activate breaks it Memcached if it is qualified in the servant.

Also you can activate the cache of the navigator (very recommended).

There are other options outposts that are optional as Instant click, that allows you pre-to load the pages that connect in each part of your Web.

 

Advanced

 

5.11 Depurar

The way purification allows to annul from a single button all the cache you, to activate a purification registry to detect possible errors.

 

To purify

 

5,12 Crawler

Crawler is a utility pre-to frisk all the urls of your site. In our shared servers this option is not available, but it is not a parameter that affects to the yield.

 

Crawler

 

6. To publish .htaccess

You can in line publish the lines of your .htaccess through this publisher.

 

7. Optimization of images of LiteSpeed Cache

One of the characteristics that emphasize in this plugin is the possibility of optimizing all the images of your WordPress site without using no plugin additional.

It works of the following way:

1) In the first place you must try that you have communication with the servers of LiteSpeed to be able to optimize your images. For it you must puncture in the option €œUpdate Status €œ.

2) Once you know that you have connection with the servant, you can be sending blocks of images periodically (all are not optimized simultaneously) puncturing in the button €œTo send optimization request €œ. This process will take some minutes in completing itself since the images are sent to several servant of LiteSpeed so that they optimize them and they bring them of return.

If in the means option, you chose the option to turn the images to format .webp, in this process of optimization also the format conversion takes place.

You must consider that if you have many images in your WordPress, this process can take in completing itself since you will have to be sending blocks of images periodically and to hope to that they lower optimized.

WordPress generates of a same image many others in different sizes reason why you can perfectly have thousands of images in your Web.

 

Optimization of images of Litespeed Cache

 

8. Crawler de LiteSpeed Cache

This option is to execute crawler. Since we have commented previously he is not available for our shared servers.

 

Crawler de Litespeed Cache

 

9. Report

The report of LiteSpeed is the information and characteristic concrete that it has your installation of WordPress in case there is some failure and it is necessary to send the information from the surroundings to the technicians of LiteSpeed so that they can tackle the problem about better form.

 

Report

 

10. Import/Export

You can export the preferences kept in plugin soon to be able to concern it in other sites.

 

To import and to export

 

11. Verification of which LiteSpeed Cache for WordPress is activated

In order to verify that the cache correctly is activated, we must see heads HTTP of our page. These they indicate important information to us on our Web.

We must make sure that in the head we found the X-LiteSpeed-Break option: hit song

This indicates to us that the cache correctly is activated. If it appears the option as beauty queen is that the cache is activated but still that page has not been frisked. We will have to revisit the page from our navigator to force the generation of the cache. If it appears the option not-breaks or other options, it is that the cache badly is formed.

In this case it contacts with our Dpto. of Support to review your case.

11,1 Verification through an external URL

It is the easiest and comfortable form. We can use some URL that it facilitates to see heads to us HTTP of our page.

In addition, to the being an external analysis, we will not have problems of cache concealment because we are logueados in the administration of WordPress.

An example that we used is the following one: https://tools.keycdn.com/curl.

 

HTTP Header Check

11.2 Ver heads HTTP in Google Chrome

In Chrome: To inspect €“ Network €“ We updated the page in the navigator €“ In the left column we punctured in direction URL of the page that we are visiting and to the right they will appear to us the data of the head.

IMPORTANT: We cannot be logueados in the administration of WordPress since the cache is deactivated when we are logueados. We will have to close the session before the verification.

 

To see heads HTTP in Google Chrome

11.3 Ver heads HTTP in Firefox

In Firefox: To inspect Element €“ Network €“ We updated the page €“ We punctured in the URL that we are visiting and they appear to us the data of the head.

IMPORTANT: We cannot be logueados in the administration of WordPress since the cache is deactivated when we are logueados. We will have to close the session before the verification.

 

To see heads HTTP in Firefox

11.4 Ver the heads through an extension of the navigator

Finally, we can install some extension in the navigator to be able to see the heads of any page of faster form. One of them can be €œHTTP Spy€ for Google Chrome.

HTTP Spy for Google Chrome

That is everything. Your LiteSpeed Cache for WordPress correctly will be formed and working. No longer you will want to use another one plugin of cache 😉

Published in ,
Transformation for PrackHost

PrackHost

Hosting specialized in Joomla! , Wordpress, Prestashop and Moodle. Services of hosting in the cloud. Dedicated servers VPS and.

Categories