In this tutorial we will explain how to configure your PrestaShop application to use Memcached. The PrestaShop application natively supports Memcached. This means that you just need to enable this option.
You can easily do that through the PrestaShop administrative area. When you are logged in it, go to the Advanced Parameters tab and click Performance.
Next, scroll down to the Caching section and choose Yes from the drop down menu under Use Cache. Here you should choose the CacheMemcached option and click on the Add server button.
Now, you will need to enter the necessary information for the Memcached server needed by PrestaShop to operate with it.
- IP Address: 127.0.0.1
- Port: here you should place the correct Memcached port number for your hosting account
- Weight: 1
You may find which is the Memcached port for your hosting account via your cPanel > SuperCacher tool > Memcached tab. Check out our tutorial on how to enable Memcached for detailed instructions on that matter.
You may test the added information via the Test server button. Finally, save the settings using the Save button situated at the bottom of the Caching section.
That's it - your PrestaShop application is now correctly configured and will use Memcached to cache certain API calls, database calls and objects.