How do I use Fastest Cache on a cPanel account?

Procédure

What is Fastest Cache?

Fastest Cache is a cache server placed in front of Apache. It is used to cache the content of your website in order to improve performance, reduce loading times and theuse of resources.

How does Fastest Cache work?

When a request is made to your website, Apache generally accepts the request, retrieves the content and returns it to the visitor. For dynamic content such as PHP pages that contain code, this code must be processed and executed each time the PHP page is accessed. Processing this code requires server time and resources, which can cause minor delays in loading a web page.

In the majority of cases, a PHP page will return the same content. Take a Wordpress blog, for example. When someone visits your blog, PHP runs in the background to check for new posts and display them to the user. Analysing the code, retrieving the new message and displaying it can take time. If you only update your blog once a week, this can consume resources unnecessarily.

To avoid this, you can implement a cache that will save a copy of your page. This will allow the cached page to be served directly to the user rather than waiting for the PHP code to be analysed on your cPanel Cloud Server package.

To understand how Fastest Cache works, we first need to understand what happens when there is no cache.

How do I use Fastest Cache on a cPanel account?

  1. The client's Web browser will, for example, request the index.php page of a website
  2. The web server will start executing the PHP of the requested page
  3. Once it has been processed, the result will be sent to the Web server
  4. The web server will send the generated page to the visitor.

As soon as you activate Fastest Cache on your cPanel interface, Fastest Cache will place itself in front of the server to intercept all requests. For each request, the server will check whether cached files exist for the requested resource. If this is the case, the cached files will be sent to visitors; if not, it will send a request to the Web server to check whether it is possible to cache the requested page.

How do I use Fastest Cache on a cPanel account?

How long are pages cached for?

Different types of content are cached for different periods of time. The principle is that static files (such as images, CSS sheets and Javascript), which generally change very little, are cached for a longer period than PHP pages, which serve dynamic content. The default cache duration is as follows:

  • PHP and other dynamic files: 5 seconds
  • Static files: 1800 seconds (30 minutes)

How do I activate or deactivate Fastest Cache?

1. Connect to the cPanel interface for the domain name in question.

2. Click on the"Fastest Cache" button in the"Software" section of your cPanel interface.

How do I use Fastest Cache on a cPanel account?

3. Click on the"Deactivate cache" button.

How do I use Fastest Cache on a cPanel account?

How do you purge your website cache in cPanel?

When you visit your website, it may no longer reflect the current content following an update. This is because the cache has not yet been updated. As a result, the site will display the previous version of your pages. To overcome this problem, you can purge (delete) the saved cache.

1. Connect to the cPanel space for the domain name concerned.

2. Click on the"Fastest Cache" button in the"Software" section of your cPanel interface.

How do I use Fastest Cache on a cPanel account?

3. Click on the"Purge Cache" button.

How do I use Fastest Cache on a cPanel account?

How do I change the Fastest Cache operating mode?

In some cases, when you are carrying out maintenance on your website for example, caching can cause conflicts. It is therefore necessary to temporarily deactivate caching in developer mode. You can also change the operating mode for Wordpress and Prestashop.

1. Connect to the cPanel space for the domain name concerned.

2. Click on the"Fastest Cache" button in the"Software" section of your interface.

How do I use Fastest Cache on a cPanel account?

3. Click on the"Change operating mode" button.

How do I use Fastest Cache on a cPanel account?

4. Choose the desired caching method and click"Save".

How do I use Fastest Cache on a cPanel account?

How do I prevent a web page from being cached?

By default, caching is active on all the web pages in your domain name. However, it is good to know that Fastest Cache will not cache pages with the"Cache-control:no-cache" tag in the header. When this tag is present in the header of a page, the page must never be cached. These headers are generally used on client connection pages, but also on PHP pages that change regularly.

Conclusion

You can now enable and disable CacheWall on your cPanel Cloud Server package with LWS. You can also purge cached files saved by the system. Fastest Cache is active by default on all domain names and it is not advisable to deactivate it in view of the significant benefits it can bring. In fact, Fastest Cache can considerably improve the performance of your website.

Don't hesitate to share your questions and comments!

Rate this article :

5/5 | 1 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

1mn reading

How do you host a new domain on your cPanel cloud server?

0mn reading

How do I configure the DNS servers for a domain on a cPanel cloud server?


Ask the LWS team and its community a question