Procédure
Your LWS Panel hosting offers two types of cache, adjustable in the “Optimization and performance” section: “LWSCache (Varnish),” a server cache that speeds up the display of your pages, and “Memcached Redis,” which keeps your application data in memory (WordPress, PrestaShop…). This help article explains how to activate and use them.
LWS Cache is a system developed by LWS that improves your website loading performance by using advanced caching mechanisms configured at server level.
To do this, it uses Varnish technology, deployed on all recent shared hosting plans (excluding servers with php 5.3 available). It speeds up your site loading by temporarily storing static versions of pages, without affecting compatibility with third-party services such as Cloudflare or other CDNs.
Your service can thus handle more requests on your website while speeding up page loading time and reducing CPU and memory usage.
From your LWS Panel customer area, you can:
This temporary disabling is very useful during the development or update phases of a website.
Step 1 : First, you must log in to your LWS account and access the shared hosting for which you want to manage caching.
Step 2 : Click on the "LWSCache (Varnish)" button found in the "Optimization and performance" section.
In the new window, you can select a cache for general use or a more specialized cache for Prestashop or WordPress sites (1) and click the "Save" button to save your request. You can also clear cached data by clicking the "Clear cache" (2).

You also have the option to disable the cache. Cache disabling should be considered carefully, as it will make your site slower and may both cause discomfort for your visitors and potentially de-rank your site in search engines, which will favor faster-loading sites. We recommend using only a temporary disabling while developing a site or diagnosing an issue.

To temporarily disable the cache, you must click the radio button "no" (1) then select "until 6 o'clock in the morning" (2) then click the "Save" (3) button. The cache will then be disabled immediately and automatically re-enabled the following morning. Of course, you can re-enable the cache at any time from this same page by selecting "yes (recommended)" and then clicking the "Save" (3) button.
If you use LWS Cache with a WordPress site, activating the service is only the first step. The tool offers many additional options that are not available by default. To benefit from all its features, you must install the LWS Cache plugin developed by LWS. In this article, we will explain how to install and configure it.
1. Installing the LWS Cache plugin
Before installing the LWS Cache plugin, first log in to your site administration. After logging in, in the left-hand menu, click on "Extensions" to go to plugin management.

Locate the "Add" button at the top of the screen. Click it to continue.

Use the search bar to find the LWS Cache plugin. After launching the search, locate the plugin in the results and click "Install now".

Once installation is complete, locate the button that now displays "Activate" and click it to activate the plugin.

The plugin is now installed and activated on your WordPress site, and LWS Cache is ready to use. From now on, your site uses the LWS Cache cache to optimize loading performance.
2. Configuring the LWS Cache plugin
As mentioned previously, after installing and activating the plugin, your site now uses LWS Cache with the recommended configuration for optimal use. However, in some situations, you may want to customize the elements you want to cache. In that case, we will explain how to do it.
To start configuring the plugin, go to the left-hand menu and click on "LWS Cache".

If you have not yet activated LWS Cache for your service from your LWS customer control panel, you will see an error message and will not be able to access the configuration options. Also note that there may be a waiting time of about 3 to 4 minutes after activation on the LWS customer panel before the plugin recognizes the activation.
Assuming LWS Cache is already activated and recognized by the plugin. In that case, you will be redirected directly to the "LWS Cache" tab, which displays the list of available options.

On this page, you can select the items to cache with LWS Cache. To help you understand each option, a description is available in the tool.
3. Clearing the cache
It may happen that you need to clear the cache (for example if you have made changes to your site). To do this, go to the plugin configuration page and click the "Purge all cache" button.

In addition, you can clear the cache from any administration page by clicking "Purge LWSCache" in the menu at the top of the page. The cache will then be deleted immediately.

Memcache is an open-source distributed memory caching system. It is used to speed up dynamic web applications by reducing database load. In other words, whenever a database request is made, it adds additional load to the server. Memcache reduces this load by storing data objects in dynamic memory.
Memcache works as follows:
Memcached is activated from your LWS Panel, with Redis: a single setting activates both.
Step 1 : Log in to your LWS account and access the shared hosting for which you want to activate MemCache.
Step 2 : Click on the “Memcached Redis” button found in the “Optimization and performance” section.
Step 3 : In the “Memcached & Redis” window, select “Enable” in “Mode” and click “Validate” to save your request. The “Current status” then changes to “Enabled”.

In your application, then specify address 127.0.0.1 and port 11211 for Memcached (or port 6379 for Redis).
Download MemCached-redux from the wordpress.org website

Unzip the module on your computer.
Go to your LWS customer area, click " Manage" behind the plan on which you activated Memcached, click " File manager" to access your FTP space. Go to "wp-content" and click "Upload".

Click "Select a file" and choose the object-cache.php file to upload it to the "wp-content" folder.

To configure Memcache on Prestashop, go to your Prestashop dashboard and click on "Advanced Parameters" in the left-hand menu and then on "Performance".

At the bottom of the page, in the "Cache" section, click "yes" to enable cache and select "CacheMemcached".
In this section, click "Add server" then enter the following information:
IP address: 127.0.0.1
Port: 11211
Weight: 0
Click the "Add server" button to save the addition of this server.
To confirm activation of this service, click the "Save" button to save your request.

Ask the LWS team and the community. Answers are published after moderation.