Instructions for using LiteSpeed Memcached on WP Basic’s WordPress Hosting service.
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:
Table of Contents
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
1. First, you need to access your hosting’s cPanel, find the section Select PHP Version and click on it.
In the interface PHP Extensions, you tick the box memcached
to turn it on.
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.
In User Management of LSMCD, you will see information about the LSMCD server. Please copy this information.
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.
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.
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.
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.
- 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. 🙂