How to use cache modules on LWSPanel?

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.

🔎 What is LWS Cache?

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.

✅ Advantages of LWS Cache

  • Significant performance improvement
  • Reduced server load
  • Full compatibility with Cloudflare, CDN, etc.
  • No configuration required
  • Simple control via your LWS Panel

⚙️ How do you manage LWS Cache from the LWS Panel?

From your LWS Panel customer area, you can:

  • Manually clear the cache
  • Temporarily disable the cache

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).

How to use cache modules on LWSPanel?

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.

How to use cache modules on LWSPanel?

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.

How do I make LWS Cache work with my WordPress site?

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.

How to use cache modules on LWSPanel?

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

How to use cache modules on LWSPanel?

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

How to use cache modules on LWSPanel?

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

How to use cache modules on LWSPanel?

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".

How to use cache modules on LWSPanel?

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.

How to use cache modules on LWSPanel?

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.

How to use cache modules on LWSPanel?

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.

How to use cache modules on LWSPanel?

What is MemCache?

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:

  • The client requests data that Memcached checks to see whether it is stored in the cache.
  • There are two possible outcomes here: If the data is stored in the cache: return the data from Memcached (no need to check the database). If the data is not stored in the cache: query the database, retrieve the data, then store it in Memcache.
  • Whenever information is modified or an item's expiration value has expired, Memcache updates its cache to ensure that the content delivered to the client is the correct one and not outdated content.

How do you install MemCache on your plan?

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”.

How to use cache modules on LWSPanel?

In your application, then specify address 127.0.0.1 and port 11211 for Memcached (or port 6379 for Redis).

How to install MemCache on Wordpress:

Download MemCached-redux from the wordpress.org website



How to use cache modules on LWSPanel?

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".

How to use cache modules on LWSPanel?

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


How to use cache modules on LWSPanel?

How to configure Memcached on Prestashop:

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


How to use cache modules on LWSPanel?

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.

How to use cache modules on LWSPanel?

help.lws.net/a/1542
Was this article helpful?

Yes

No

Read 27 652 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

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

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.