LiteSpeed ​​Memcached User Manual

Instructions for using LiteSpeed ​​Memcached on WP Basic’s WordPress Hosting service.

Huong-dan-su-dung-litespeed-memcached

If you notice, the current WordPress Hosting service of WP Basic has integrated a feature called LSMCD User Manager in cPanel. This means that from now on, customers using our WordPress Hosting service will be able to enable LiteSpeed ​​Memcached feature to cache data in the database, making the website load faster and better under load. . Let’s take a few minutes to learn about LiteSpeed ​​Memcached and how to use it.

Explore more:

What is LiteSpeed ​​Memcached?

LiteSpeed ​​Memcached (LSMCD) is a high-performance, distributed caching system with file-backed shared memory. It is an upgraded version of Memcached with outstanding advantages such as: high availability, durability and individuality.

  • High availability means that if one or more of your servers goes down, you can still access and update your data as if the servers were up and running.
  • Data persistence means that anything you put into the LSMCD stays in the LSMCD unless you notify that they have changed.
  • Distinctiveness means that each user has their own data in the repository. By isolating each user’s data, you can improve data security and potentially charge users for access to the data.

To put it simply, LSMCD will help you cache queries to the website’s database. The combination of LSMCD, LSCache and OpCode Cache will give your website a perfect performance when it comes to both fast loading speed and good load capacity.

If you want to learn more information about LSMCD, you can refer to here.

Using LiteSpeed ​​Memcached

As of October 8, 2021, LiteSpeed ​​Memcached feature has been removed on all Atlanta (USA) servers of WordPress Hosting service, including WPH01, WPH04, WPH08, WPH09 and WPH10. If your website is located on these servers and LiteSpeed ​​Memcached is on, please disable it according to the instructions in the section A few notes. LiteSpeed ​​Memcached is currently being maintained on WPH03 and WPH05 servers in the Singapore cluster.

1. First, you need to access your hosting’s cPanel, find the section Select PHP Version and click on it.

select-php-version-in-cpanel

In the interface PHP Extensions, you tick the box memcached to turn it on.

kich-hoat-memcached-extension-in-php

Note: memcached other than memcache, take care to avoid activating the wrong extension.

2. Return to the main interface of cPanel, click on the item LSMCD User Manager. If you don’t find this item in cPanel, you can skip it and go straight to step 3.

click-vao-muc-lsmcd-user-manager-in-cpanel

In User Management of LSMCD, you will see information about the LSMCD server. Please copy this information.

user-management-of-lsmcd

3. Access LiteSpeed ​​Cache => Cache => [6] Object in WordPress Dashboard and set as shown below. If you have not installed the LiteSpeed ​​Cache plugin before, remember to install and activate it.

thiet-lap-litespeed-memcached-tren-plugin-litespeed-cache

In there:

  • Object Cache: you to ON. Activate only if you see Memcached Extension: Enabled and Connection Test: Passed.
  • Method: choose Memcached.
  • Host: you fill in 127.0.0.1.
  • Port: you fill in 11211.
  • Default Object Lifetime: is the default cache time (in seconds). You can be 360 seconds as default or adjust as desired.
  • Persistent Connection: you to ON.
  • Cache Wp-Admin: you to ON.
  • Store Transients: you to ON.

The rest of the items you keep as default. Click the button Save Changes to save.

Checked items Status. If you see it displayed as shown below, it means that LiteSpeed ​​Memcached installation is complete.

litespeed-object-cache-status

4. During use, if you want to clear the cache of LiteSpeed ​​Memcached, please click on the item Purge All – Object Cache on the Admin Bar.

rub-cache-crab-litespeed-memcached

A few notes

  • If you find your website is slow to load (especially in the WordPress Dashboard), visit LiteSpeed ​​Cache => Cache => [6] Object and check item Connection Test see if it’s in state Passed (LiteSpeed ​​Memcached service is active) or not? If it is in state Failed (LiteSpeed ​​Memcached service is not working) please change the item Object Cache to state OFF.

tat-litespeed-memcached

  • LiteSpeed ​​Memcached may conflict with some web builders, such as Beaver Builder… Therefore, before editing your website with the web builder, remember to visit LiteSpeed ​​Cache => Cache => [6] Object and move item Object Cache to state OFF. After finishing editing, move the item Object Cache to state ON.

It’s simple, right? Good luck!

If you liked this article, follow my blog to regularly update the best and latest articles. Thanks very much. 🙂

Published
Categorized as Wordpress

By Nguyen Manh Cuong

Nguyen Manh Cuong is the author and founder of the nguyendiep blog. With over 14 years of experience in Online Marketing, he now runs a number of successful websites, and occasionally shares his experience & knowledge on this blog.

Leave a comment

Your email address will not be published. Required fields are marked *