In this article, we will look at how to enable Memcached on PrestaShop with LiteSpeed Cache for PrestaShop.
Prerequisites
Enter the following address in your web browser: https://mg.n0c.com/en/.
Procedure
Memcached’s native integration into the Prestashop application simplifies configuration. Here is how to activate it, step by step:
- Activate Memcached in N0C as explained in the article How to use Memcached.
- Take note of the path to the Linux socket to establish the link between Memcached and your web application (path /home/USERN0C/.memcached/memcached.sock):
- Login to your PrestaShop Dashboard and go in the left menu to Configure -> Advanced Parameters -> Performance.
- In the Caching section, select Yes from the drop-down menu under Use cache.
- Select CacheMemcached.
- Add a server, providing the required information such as :
- IP address: 127.0.0.1
- port: 11211
- weight: 1
- You can check the information by clicking on the Test server button before saving.
Once this step is complete, your PrestaShop application is ready to use Memcached to cache certain API calls, database calls and objects.
References
Official Prestashop documentation: https://doc.prestashop.com/.