X-Cart:Using Memcached with X-Cart

From X-Cart 4 Classic
Revision as of 15:47, 8 September 2016 by Dohtur (talk | contribs)
Jump to: navigation, search
X-Cart 4.7or above

Stating with X-Cart version 4.7.7, it is possible to use Memcahed with X-Cart:

  1. Install Memcached server (https://memcached.org/)
  2. Launch Memcached server and enable auto-start for it.
  3. Install Memcache extension (http://php.net/manual/en/memcache.installation.php).
  4. In either /etc/php/conf.d/memcache.ini or /etc/php/php.ini, uncomment the following line:
    extension=memcache.so
  5. Restart the web server.
  6. Review phpinfo to check that Memcache module has been added, with the memcache.default_port number 11211.
  7. Remove the comment from config.php:
-#define('USE_MEMCACHE_DATA_CACHE', true);
+define('USE_MEMCACHE_DATA_CACHE', true);