Configure OpenCart with Memcached unix socket

NOTE: MemCached is available on our Mocha (Linux) package, and WordPress Advanced packages only!

  1. Enable Memcached server from cPanel, for more information, please refer to the following article

  2. Download OpenCart Memcached database driver from

  3. Copy all files into the web directory.

  4. Change your database driver to mysqli\_memcached (config.php)

  5. Change your cache driver to null (index.php)

  6. Open mysqli\_memcached.php with cPanel file manager or via FTP/SSH (This file is located in your opencart web directory/system/library/db/mysqli\_memcached.php)

  7. Replace the lines below:

private $\_memcached\_hostname   = 'localhost'; private $\_memcached\_port       =  11211;

with:

private $\_memcached\_hostname   = '/home/YourUsername/memcached.sock'; private $\_memcached\_port       =  0;