[Prestashop help] enable Memcached via PHP::Memcache for Prestashop website?

The our statistics, if the speed of a prestashop website increase a second, you can lost:

  • Page views decrease 12%
  • Customer satisfaction decrease 17%
  • Conversions rate decrease 8%

So speed up your prestashop website is essential, it will bring to your prestashop more customer, more orders and higher ranking in Search Engine as Google, Bing….

Cache is a best solution for speed up a Prestashop website. The Prestashop has included many Cache Systems into it’s platform as: Memcached via PHP::Memcache, Memcached via PHP::Memcached, APC Cache, Xcache.

In this post, Buy-Addons team will help you How to enable Memcache Cache for your Prestashop website.

Step 1: Check Memcache PECL extension already installed in your hosting or not yet?

Create a PHP file (example We named test_memcache.php) in your hosting with following code:

<?php
if(class_exists(‘Memcache’))
{
echo “Memcache enabled!”;
} else {
echo “Memcache is NOT enabled!”;
}

Go to your browser, enter the URL to execute this PHP file, example http://your-prestashop-site.com/test_memcache.php

If it is showing Memcache enabled! -> Okay, go to step 2.

If it is showing Memcache is NOT enabled! -> Your hosting has not yet installed Memcache PECL extension. You should ask your hosting provider install it like this guide: https://www.php.net/manual/en/memcache.installation.php

Step 2: Enable Memcache Cache in Prestashop System

In this setting page, scroll to Caching section:

  1. Change Use cache = Yes
  2. Checked option: Memcached via PHP::Memcache (you must install the Memcache PECL extension) 

prestashop-memcached-2

Related Articles

Leave a reply

You must be logged in to post a comment.